Created
June 26, 2014 15:43
-
-
Save scottyab/22121c3516de6bee05f2 to your computer and use it in GitHub Desktop.
Rename iOS graphics with [email protected] to foo.png roughly 2x graphics are xhdpi (code from https://stackoverflow.com/questions/17484514/bash-script-command-to-bulk-remove-2x-from-filename-retina-image-normal)
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/bash | |
#rename file names to remove the "@2x" | |
for i in *@2x.*; do | |
mv "$i" "${i/@2x/}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment