Last active
March 26, 2018 11:23
-
-
Save hrshadhin/319985a7fc42accc34516a69cc5d1f1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=========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