files=`find . -name "images*.pgm"`i=0for f in $files;doi=`expr $i + 1`newf=`printf "test/images%03d.pgm" $i`mv $f $newf;done
Thursday, February 4, 2010
Renumbering files in consecutive order
Here is a small script I used to renumber files in consecutive order. Of course you need to change it to suite your needs.
Subscribe to:
Posts (Atom)