Skip to content

Instantly share code, notes, and snippets.

@hugodias
Last active October 14, 2015 01:28
Show Gist options
  • Save hugodias/4286708 to your computer and use it in GitHub Desktop.
Save hugodias/4286708 to your computer and use it in GitHub Desktop.
Rename multiple files in sequential numbers shell
j=1
for i in *.jpg;
do
mv "$i" "$j.jpg";
((j++))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment