Created
April 14, 2017 13:26
-
-
Save ddeyoung/66cf11c64a98ed7ece860dc1a51e8fc9 to your computer and use it in GitHub Desktop.
Rename all files in a folder on OS X
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
for old in ./file_*.svg; | |
do | |
new=$(echo $old | sed -e 's/file_//g'); | |
mv -v "$old" "$new"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment