Skip to content

Instantly share code, notes, and snippets.

@andyhullinger
Created February 11, 2014 02:12
Show Gist options
  • Save andyhullinger/8928081 to your computer and use it in GitHub Desktop.
Save andyhullinger/8928081 to your computer and use it in GitHub Desktop.
A nify one-line OSX Terminal command to add the Retina @2x suffix to a folder full of .png files. Just cd into the folder and run this command.
for f in *.png; do NEW=${f%.png}@2x.png; mv ${f} "${NEW}"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment