[nycbug-talk] Files/directories by date utility?
Sahil Tandon
sahil at tandon.net
Mon Jul 26 23:57:26 EDT 2010
On Mon, 2010-07-26 at 20:21:22 -0400, Francisco Reyes wrote:
> Before re-inventing the wheel, anyone know of a port for FreeBSD
> that would show dates of files by directory or something like it.
>
> In particular I am looking for the newest file per folder.
>
> If nothing like it exists thinking of using the output of:
> find <dir> -exec ls -l {} \;
Perhaps you could expand on something like the following (very crude,
currently needs to be run in each directory):
# ls -ltr | tail -1 | awk '{print $6,$7,$8,$9}'
--
Sahil Tandon <sahil at tandon.net>
More information about the talk
mailing list