Created
June 12, 2011 09:52
-
-
Save albanpeignier/1021387 to your computer and use it in GitHub Desktop.
Rename numbered files
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
$ touch 01-test1 02-test2 | |
$ rename -n 's/[0-9][0-9]-(.*)/$1/' * | |
01-test1 renamed as test1 | |
02-test2 renamed as test2 | |
$ rename 's/[0-9][0-9]-(.*)/$1/' * | |
$ ls | |
test1 test2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment