Article 5J6PJ Sort folders by freshness

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:
B/
C/
A/
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 ?latest?d=yIl2AUoC8zA latest?i=DSw-jqsMzTg:ddR0UL5Twe4:F7zBnMy latest?i=DSw-jqsMzTg:ddR0UL5Twe4:V_sGLiP latest?d=qj6IDK7rITs latest?i=DSw-jqsMzTg:ddR0UL5Twe4:gIN9vFwDSw-jqsMzTg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments