Created
November 3, 2011 18:55
-
-
Save dpdexter/1337437 to your computer and use it in GitHub Desktop.
Bash Rename 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
for i in REG_* ; do mv $i `echo $i | sed 's/REG_//'`; done |
for file in *.png; do mv "$file" "basename $file .png
.jpg"; done
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To Rename the extension:
for i in *.jpg; do mv "$i" "
basename $i .jpg
.JPG"; done