Created
September 22, 2016 13:51
-
-
Save roideuniverse/bfc7953b72647d7eb010d4c30d6941f9 to your computer and use it in GitHub Desktop.
rename all files in a dir based on regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *; do mv "$i" "`echo $i | sed "s/.*-/00/"`"; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment