[Gllug] Listing files by date across directories
Ben Fitzgerald
ben_m_f at yahoo.co.uk
Thu Jun 17 09:18:13 UTC 2004
On Thu, Jun 17, 2004 at 10:10:25AM +0100, Jonathan Dye wrote:
> Hi,
>
> I would like to list all the files in a directory tree sorted in order
> of last modification but I can't think of a way of doing it. I can list
> files within a single directory in modification date order easily with
> "ls -t" but how would I do this across multiple directories?
>
You could try something like this:
find . -exec ls -l --sort-style=long-iso {} \; | sort -k 6,7
Cheers,
--
Ben Fitzgerald
Registered Linux user number 339435
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list