[wplug] Shell: 'find' trick
James O'Kane
jo2y at midnightlinux.com
Sat Oct 15 16:05:36 EDT 2005
On Sat, 15 Oct 2005, Brandon Kuczenski wrote:
> Can anyone think of a way to use 'find' to select only the newest file in a
> directory tree that starts with a given name? I don't know when it was
> modified, only that it was modified more recently than the other files that
> match the pattern. Example:
If you can trust the file modification time, you can do:
ls -rt |tail -1
-james
More information about the wplug
mailing list