Skip to content

Instantly share code, notes, and snippets.

@ddeyoung
Created April 14, 2017 13:26
Show Gist options
  • Save ddeyoung/66cf11c64a98ed7ece860dc1a51e8fc9 to your computer and use it in GitHub Desktop.
Save ddeyoung/66cf11c64a98ed7ece860dc1a51e8fc9 to your computer and use it in GitHub Desktop.
Rename all files in a folder on OS X
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