Simple Filename Parsing Question
March 9, 2008 7:33 AM
Subscribe
Should-be-simple Linux timestamped file parsing question.
I have a directory with what is now 10k jpeg files in this format (number of seconds since 1970):
1202499302.jpg
1202419201.jpg
1202439301.jpg
1202459401.jpg
1202479501.jpg
1202499602.jpg
1202419502.jpg
1202439601.jpg
1202459702.jpg
1202479801.jpg
1202499901.jpg
I'd like to use a script of some sort to shuffle these images into directories based on month, then day. Note that the "last modified" times on the file system are not necessarily the same as the timestamp in the file name, and I'd like to collate the files with the file name timestamp, not the filesystem timestamp.
Can anyone suggest a way to do this?
posted by yellowbkpk to computers & internet (7 comments total)
3 users marked this as a favorite
posted by Mach5 at 8:17 AM on March 9, 2008