[nycbug-talk] Files/directories by date utility?
njt at ayvali.org
Tue Jul 27 10:42:18 EDT 2010
* Francisco Reyes <lists at stringsutils.com> [2010-07-26 20:21:22-0400]:
> 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.
This is hugely inefficient, but seems to do what you want:
for i in `find <dir> -type d`; do find $i -type f -maxdepth 1 -mindepth 1|xargs ls -lt|head -1; done
More information about the talk