I'm not going to pretend this script is the best thing since indoor
plumbing, but for many new users to Linux, who want to be able to name
their digital pictures in a sane manner, it might be just the ticket.
renamepics is a bash script that uses the program 'exif' or exiftags to rename all jpeg
files in
a directory to new names using the date and timestamp contained within
the exif info in the file.
As of 1.0.2, you must comment out the line for 'exif', and uncomment 'exiftags' to use exiftags. Dobos Gyula contributed this, and exif seems to run cleaner, so that will be the default.
For example a file named Sally1-birthday.jpg would be renamed something
like 20051011-141023.jpg
This keeps all file names unique (provided you aren't taking more than
1 picture per second), and
lets you tell when the picture was taken with a glance.
renamepics is currently at version 1.0.2 and I'm releasing it under the
GPL
renamepics should be considered beta software at best, and there is no
guarantee, explicit or implied.
Use at your own risk.
Please use copies of your pictures until you are comfortable with the
successful operation of the script.
Please run the script against a copy of
your original pics. There have been cases of files gone missing.
I believe I fixed those problems
with 1.0.1, but one can never be sure...
renamepics can be downloaded here.
You may contact me here with comments, suggestions, complaints, or if you're seeking to send me some interesting imported or micro-brewed beer.