[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Batch Process Photographs
On Sun, Jul 12, 2009 at 3:09 PM, Richard Ibbotson<richard@xxxxxxxxxxxxxx> wrote:
> I'd like to title 200 photographs so that the image name can be
> changed from something like dsc3.jpg to holiday3.jpg. Would be nice
> if the batch process would convert all images in sequence as well so
> that dsc1.jpg becomes holiday1.jpg and dsc200.jpg becomes
> holiday200.jpg
If you have all the files in the same directory and you want the final
files named sequentially (rather than with their original numbers),
then you can do this in a simple bash script:
#!/bin/bash
i=1
for file in *.jpg; do
mv "$file" "$i.jpg"
((i++))
done
otherwise, if you wanted something more complex (and/or were wanting
to use a GUI), then I would recommend pyRenamer (
http://www.infinicode.org/code/pyrenamer/ ).
Regards,
Ezra.
_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html
GNU - The Choice of a Complete Generation