Skip to content

Instantly share code, notes, and snippets.

@scottyab
Created June 26, 2014 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottyab/22121c3516de6bee05f2 to your computer and use it in GitHub Desktop.
Save scottyab/22121c3516de6bee05f2 to your computer and use it in GitHub Desktop.
Rename iOS graphics with foo@2x.ong 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)
#!/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