I have a question
I have the rename command, but after I run the rename starting from 00, how to start from 01, please help me
this is the command that I use
for i in *.mkv; do
new=$(printf "Movie - %02d.mkv" "$a")
mv -i -- "$i" "$new"
let a=a+1
done
rename
, here is a nice example: Renaming hundreds of files at once for proper sorting. – pa4080 Jul 15 '20 at 12:38