Wednesday, October 31, 2007

[Work] script

rename the files and arrange them in numerical order

#!/bin/bash

i=0
for f in pc*.tif
do
nf=c$( printf "%03d" $i ).tif
mv $f $nf
i=$(($i+1))
done

No comments: