for f in *;
do for i in `seq 1 4094`;
do mv -v "$f"/"$f"_"$i".tif "$f"/"$f"_`printf "%04d" $i`.tif;
done;
done;
hasilnya:
renamed 'A10/A10_1.tif' -> 'A10/A10_0001.tif'
renamed 'A10/A10_2.tif' -> 'A10/A10_0002.tif'
...
renamed 'A10/A10_1107.tif' -> 'A10/A10_1107.tif'
renamed 'A10/A10_1108.tif' -> 'A10/A10_1108.tif'
renamed 'A10/A10_1109.tif' -> 'A10/A10_1109.tif'
...
0 rants:
Posting Komentar