Created
April 12, 2013 00:22
-
-
Save lajlev/5368288 to your computer and use it in GitHub Desktop.
Multiple rename files in terminal
This file contains hidden or 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
num=0 | |
for j in *.* | |
do | |
mv "$j" `printf "fb.%01d.jpg" $num` | |
num=`echo "$num + 1" | bc` | |
done | |
#set zeros on %01d | |
#You can set filename instead of *.* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment