Created
May 12, 2015 19:44
-
-
Save cauli/ba8f233ecf791ca5163b to your computer and use it in GitHub Desktop.
Bash script to rename all images inside a folder to @3x. (Appending string to file names)
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
find . -iname "*.png" -exec bash -c 'mv "$0" "${0%\.png}@3x.png"' {} \; | |
find . -iname "*.jpg" -exec bash -c 'mv "$0" "${0%\.jpg}@3x.jpg"' {} \; | |
find . -iname "*.gif" -exec bash -c 'mv "$0" "${0%\.gif}@3x.gif"' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment