I have a directory tree with lots of branches and trees. At the top node, however, there are only five directories, let's say A-E. Within the directory tree, files are being updated at random.
I'd like to be able to get a listing of the directories (that is, like an ls) with a last modified file time which includes all sub directories and files within that directory. So I will end up with something like this:
A 12th June 08:00 B 13th June 08:00 C 14th June 08:00 D 15th June 08:00 E 16th June 08:00
I've tried variants on ls -t
, but that does not seem to take sub-directories into account.
There's also something like this find . -type f | xargs ls -tr
, but I can't see a way of getting the output I want using this (note: I'm very limited in my Unix knowledge, as you can probably tell).