Skip to content

Instantly share code, notes, and snippets.

@ismaGNU
Created February 17, 2015 16:04
Show Gist options
  • Save ismaGNU/58bd44775cbd979e34c8 to your computer and use it in GitHub Desktop.
Save ismaGNU/58bd44775cbd979e34c8 to your computer and use it in GitHub Desktop.
Rename jpg adding numbers or operating with them
n=10000; e='JPG'; j=0; for f in *.$e; do mv "$f" IMG_"${n}".$e; ((n++)); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment