Created
November 19, 2011 12:49
-
-
Save leonardehrenfried/1378805 to your computer and use it in GitHub Desktop.
Rename file consecutively
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
cnt=1 | |
for file in `ls *.jpg` ; do | |
mv ${file} ${cnt}.jpg | |
#echo ${file} | |
cnt=$(( cnt +1 )) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment