i=29 # add 1 to last number in batch for f in *.png; do dest=$(printf "%02d" $i).png mv "$f" "$dest" i=$((i + 1)) done [[https://stackoverflow.com/questions/57860821/rename-files-with-incrementing-number-starting-at-certain-number|source]]