Skip to content

Instantly share code, notes, and snippets.

@pawiromitchel
Created August 29, 2019 11:41
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 pawiromitchel/36004b30d7668f94b12e00ec24c3826b to your computer and use it in GitHub Desktop.
Save pawiromitchel/36004b30d7668f94b12e00ec24c3826b to your computer and use it in GitHub Desktop.
Bulk rename files and increment the name
a=10000121
for i in *.idx; do
mv -i -- "$i" "$a"
let a=a+1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment