Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-30-2006, 11:41 AM   #1
Registered: May 2005
Location: Canada
Distribution: PCLinuxOS 2007
Posts: 274

Rep: Reputation: 30
Rename Files With Date Picture Taken On Command

What I have is a lot of pictures, about 2k, and I would like to rename them say: Picture1.jpg, Picture2.jpg ... But starting with the first picture that was taken. Can I get a command that would read the timstamp of the picture, and then tell it to sort them from 1 to 2,000?

Thanks for any help as usual!
Old 10-30-2006, 01:18 PM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
There are a few places where you might get the date from:
  1. The files last modification date on the filesystem. This will likely be the time the photo was downloaded from the camera to your computer, or the last time you copied the file to a new device/location. Hence it's probably not ideal.
  2. From EXIF meta-data in the image files. This is probably the best option, assuming the camera you used to produce the images sets it, and has it's clock set correctly!

I found this program, which looks like it will do what you want, renrot. It'll also rotate images which have an EXIF tag to say that this should be done.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename file with date stamp MacSob Linux - General 6 09-13-2005 02:30 PM
How can I rename a lot of files with a single command? pujolasdf Linux - Software 4 07-20-2005 06:27 AM
Command line: Rename several dist files at the same time ExCIA Linux - Newbie 2 04-28-2005 11:12 AM
Any programs to rename a image to it's EXIF date ? CRego3D Linux - Software 1 11-08-2004 03:25 PM
rename files on a command line? CrazyPilot Linux - General 9 06-30-2004 05:10 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration