Created
February 2, 2015 09:38
-
-
Save surgicalmaskman/4b6cb71788f3282a9e2d to your computer and use it in GitHub Desktop.
rename
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
#!/bin/bash | |
a=1 | |
for i in RIMG*.JPG; do | |
s=$(printf "RIMG%04d.JPG" $a) | |
echo $s | |
mv -f $i $s | |
let a="${a}+10" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
既存のファイル名に+10できればうれしい。
I want to rename a filename A001 to A0010.