Skip to content

Instantly share code, notes, and snippets.

@Shilo
Created July 16, 2016 10:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shilo/71c3d41ebf43e148a72da2f8796f6980 to your computer and use it in GitHub Desktop.
Save Shilo/71c3d41ebf43e148a72da2f8796f6980 to your computer and use it in GitHub Desktop.
Terminal command to append "@2x" to file names inside current directory.
for file in *; do mv "$file" "${file%.*}@2x.${file##*.}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment