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