Created
March 23, 2018 14:17
-
-
Save prandelicious/b980d0c7ff31f9705125e34635f45ddc to your computer and use it in GitHub Desktop.
Rename a bunch of files
This file contains hidden or 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
rename -n 's/^[0-9]+ - //' * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove
-n
after testing to actually rename the filesExplanation
s/old/new/
replace old with new^
start of string[0-9]+
some numbers