Skip to content

Instantly share code, notes, and snippets.

@ardydedase
Created April 8, 2013 02:29
Show Gist options
  • Save ardydedase/5333768 to your computer and use it in GitHub Desktop.
Save ardydedase/5333768 to your computer and use it in GitHub Desktop.
Rename and create a copy of a bunch of files by appending a string at the end of the filename.
h=12;for i in *_$h.png; do noext=${i/\.png}; cp $i $noext"x$h.png"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment