Sort folders by freshness
by ychaouche from LinuxQuestions.org on (#5J6PJ)
Dear LQ,
I would like to sort directories such that the directory containing the freshet files are listed first. For example, if I have three directories A/, B/, C/, the sort would be
Quote:
if B had a file anywhere under its subdirectory tree that is newer than any other file under C and A; and C would have a file anywhere under its subdir tree that is newer than any other file in A's subdir tree.
Any idea how I could do that ?
I would like to sort directories such that the directory containing the freshet files are listed first. For example, if I have three directories A/, B/, C/, the sort would be
Quote:
B/ C/ A/ |
Any idea how I could do that ?