Skip to content

Instantly share code, notes, and snippets.

@gylns
Created April 27, 2016 00:45
Show Gist options
  • Save gylns/e2ac66e005b6e3cca6db309304ba297b to your computer and use it in GitHub Desktop.
Save gylns/e2ac66e005b6e3cca6db309304ba297b to your computer and use it in GitHub Desktop.
f=(*.jpg)
i=({01..37})
for ((j=0; j<=${#f[@]}; j++))
do
mv ${f[j]} ${i[j]}.jpg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment