Created
April 19, 2014 15:19
-
-
Save miguelSantirso/11087384 to your computer and use it in GitHub Desktop.
OS X Terminal batch rename
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
# Type this directly into terminal | |
# Renames *.aaa to *.bbb | |
for file in *.aaa | |
do | |
mv "$file" "${file/.aaa/.bbb}" | |
done | |
# This works: | |
for file in **/*.aaa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment