Page 1 of 1

Renumbering image sequences (Linux/MacOS)

Posted: Thu May 06, 2021 6:15 pm
by peter_b

Code: Select all

MASK="reelX_%07d.dpx"

i=1
for f in *.dpx; do
    OUT=$(printf "$MASK" $i)
    echo "$f : $OUT"
    mv $f $OUT

    i=$((i+1))
done