renaming jpeg files

Dotan Cohen dotancohen at gmail.com
Mon Oct 9 12:45:47 UTC 2006


On 09/10/06, Todd Slater <dontodd at gmail.com> wrote:
> On 10/9/06, Dotan Cohen <dotancohen at gmail.com> wrote:
> > I have a recursive directory of photos with inconsistent filenames. Is
> > there a program that will rename all the files, based upon the time
> > and date that the photo was taken? Can I do this with bash (that means
> > that bash will need to read the exif data)?
>
> I wrote a bash script that will rename pictures. It requires the exif
> package. It won't recurse directories, but just calling it in a 'for'
> loop should do the trick.
>
> http://idea.zanestate.edu/wordpress/images/renamer.txt
>
> HTH,
>
> Todd
>

Nice job. I do need the time as well as the date, though. In any case,
I can learn quite a bit from looking at your code. Thanks.

Dotan Cohen

http://dotancohen.com/
http://technology-sleuth.com/




More information about the ubuntu-users mailing list