Skip to content

Instantly share code, notes, and snippets.

@edwinwebb
Created October 26, 2011 13:13
Show Gist options
  • Save edwinwebb/1316313 to your computer and use it in GitHub Desktop.
Save edwinwebb/1316313 to your computer and use it in GitHub Desktop.
Rename files in directory to 1,2 ... 11,12 ... 102,103
j=0; for i in *.png; do ((j = $j+1)); k=$j".png"; mv $i $k; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment