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.
In reply to Re: Find most recently file
by kyle
in thread Find most recently file
by clementine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |