Created
April 12, 2019 16:11
-
-
Save super-fishz/6847719516dbf06b757cf88f95fccda6 to your computer and use it in GitHub Desktop.
rename multiple files
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
# read files and rename | |
num=0 | |
for file in *.jpeg | |
do | |
num=$((num + 1)) | |
# ls "${file}" | |
printf -v tmp_name "jandi_%05d.jpeg" $num | |
printf $tmp_name | |
mv -i "${file}" "${tmp_name}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment