Skip to content

Instantly share code, notes, and snippets.

@hrshadhin
Last active March 26, 2018 11:23
Show Gist options
  • Save hrshadhin/319985a7fc42accc34516a69cc5d1f1a to your computer and use it in GitHub Desktop.
Save hrshadhin/319985a7fc42accc34516a69cc5d1f1a to your computer and use it in GitHub Desktop.
=========START==============
#for massive file rename
num=1
for file in $(ls -v *.jpg); do
mv "$file" "$num.jpg"
num=$((num+1))
done
=========END================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment