in reply to Find most recently file
In addition to the excellent pointers you've gotten from kennethk, I'd add that the -M file test operator might be useful here. It does a stat, but it only returns modification time instead of all the other stuff that stat does. Since the time that -M gives you is relative to the time your script started, it's not very good for finding an absolute time, but it's fine for doing comparisons, which is what you're after.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Find most recently file
by clementine (Initiate) on Mar 31, 2009 at 16:49 UTC | |
by kyle (Abbot) on Mar 31, 2009 at 17:47 UTC | |
by kennethk (Abbot) on Mar 31, 2009 at 17:18 UTC | |
by Bloodnok (Vicar) on Mar 31, 2009 at 17:23 UTC |