[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
On Wed, 2003-01-15 at 10:33, Tristan Burnett wrote: > I'm trying to find a way of renaming a sequence of images > > e.g. ( desired result ) > anim_001.jpg > anim_002.jpg > anim_003.jpg > ..... > > Does anybody know of a KDE tool or shell script for doing such a job? ct=1 /bin/ls *jpg|while read name;do number=`printf %03d $ct` mv $name anim_${number}.jpg ct=`expr $ct + 1` done Should do you... Alex. -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.