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
source