in reply to What's the difference between stat and sort?
If you want the lexically last file in the directory, you don't need to sort as glob sorts it output anyway--least on my system it does.
perl -le"print +(<*>)[-1]" XXX_I386
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's the difference between stat and sort?
by beable (Friar) on Jul 15, 2004 at 10:35 UTC | |
by BrowserUk (Patriarch) on Jul 15, 2004 at 10:55 UTC |