Created
April 29, 2015 09:10
-
-
Save basdog22/8403619b1a0206ef1246 to your computer and use it in GitHub Desktop.
Bulk rename files ubuntu. This one renames 52353 a.jpg to 52353.jpg
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
rename -v 's/(\d{5})\s\w{1}\.jpg$/$1\.jpg/' *.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment