Skip to content

Instantly share code, notes, and snippets.

@josephfinlayson
Created April 28, 2012 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephfinlayson/2519418 to your computer and use it in GitHub Desktop.
Save josephfinlayson/2519418 to your computer and use it in GitHub Desktop.
useful perl script to rename files+ a number
NUM=0 ; for FILE in * ; do NUM=`expr $NUM + 1` ; mv $FILE $NUM\.jpg ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment