Script to "Order" Images
by FredJones from LinuxQuestions.org on (#5MBV8)
I have fifteen years of photos on my PC, each arranged in directories by year/month. But file names can be repeated and also the dates of the files can't be trusted, as some where copied more than once, and have lost their original timestamps.
What I want to do is choose 120 of them to print an album, but I need them to be sorted chronologically.
I thought I could create a bash script in an empty directory that runs every second and checks for any files in that dir. If it finds one, then it renames that to the current timestamp and moves it into a subdirectory.
Then I could just copy over whatever files I want into that dir and if I proceed chronologically, then each time I copy over a file, it will get renamed and they will be in order.
That makes sense? Someone has a better idea? :)
What I want to do is choose 120 of them to print an album, but I need them to be sorted chronologically.
I thought I could create a bash script in an empty directory that runs every second and checks for any files in that dir. If it finds one, then it renames that to the current timestamp and moves it into a subdirectory.
Then I could just copy over whatever files I want into that dir and if I proceed chronologically, then each time I copy over a file, it will get renamed and they will be in order.
That makes sense? Someone has a better idea? :)