Skip to content

Instantly share code, notes, and snippets.

@julianlconnor
Created May 15, 2012 18:08
Show Gist options
  • Save julianlconnor/2703823 to your computer and use it in GitHub Desktop.
Save julianlconnor/2703823 to your computer and use it in GitHub Desktop.
Small script that runs through all images in the current directory that do not have the '@2x' identifier and promptly adds it.. lol
for i in `ls | grep -v "@2x"`;
do mv $i `echo $i|sed s/\.png/@2x\.png/`;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment