in reply to Re^3: File creation and last modifiication time
in thread File creation and last modifiication time
Part of your problem is to fine the newest and oldest file. Let's try that: perl find newest file in directory. The first hit already explains how to get the newest or oldest file.Curious as I am (because I've no clue how to find the 'newest' file, or even how to define what the 'newest' file is), I clicked on the link. I somewhat expected to find how to find the file which was modified last (which, BTW, is something totally different from "newest"). But not even that. For me, the first link explained how to find the largest file, for the second link, I couldn't even figure out what the question was, or whether there was an answer, and the third link wanted me to sign up before even revealing an answer. The fourth link tells me about the standard file tests in Perl, but Perl doesn't have a standard test for the age of a file. The fifth link (to Perlmonks) claims to find the oldest file in a directory, but what it really does is to find a file whose inode was last modified the longest time ago. The sixth link lists a couple of modules related to file manipulation - if the answer is in one of the listed modules, then it doesn't say so (but I doubt any of them does). After the sixth, I only scanned the titles of the pages, but none suggested to answer the question.
To me it also appears like magic that Google works for me, but not for you.Your Google must be better than mine. Do you have the Platinum account?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: File creation and last modifiication time
by moritz (Cardinal) on Aug 21, 2009 at 11:34 UTC | |
by JavaFan (Canon) on Aug 21, 2009 at 12:03 UTC | |
by moritz (Cardinal) on Aug 21, 2009 at 12:12 UTC | |
|
Re^5: File creation and last modifiication time
by Marshall (Canon) on Aug 21, 2009 at 12:08 UTC |