Renumbering image sequences (Linux/MacOS)

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 381
Joined: Tue Nov 12, 2013 2:05 am

Renumbering image sequences (Linux/MacOS)

Post 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
Post Reply