Created
February 26, 2013 12:26
-
-
Save gingertom/5038086 to your computer and use it in GitHub Desktop.
Renames all the images in a folder to add @2x between the filename and the extension. Usage (run in the folder to affect): path/to/renamer/renamer.sh
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
#!/bin/sh -e | |
cd "${1-.}" | |
for f in *; do | |
mv "$f" "${f%.*}@2x.${f##*.}" | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment