Created
September 4, 2014 10:40
-
-
Save ellcom/440fd803ec00040dccd9 to your computer and use it in GitHub Desktop.
Remove @1x from file names in a directory
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 | |
for f in *@1x.png; do | |
echo "$f" | |
echo "${f%@1x.*}.png" | |
mv "$f" "${f%@1x.*}.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment