Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-11-12 11:58:51 +0100

for dir in `find /usr -maxdepth 1 -type d -not -name .\*`; do echo -n "$dir " && find "$dir" -type d | wc -l; done | sort -rnk2 | head -1 | cut -d" " -f1

for dir in `find /usr -maxdepth 1 -type d -not -name .\*`; do echo -n "$dir " && find "$dir" -type d | wc -l; done | sort -rnk2 | head -1 | cut -d" " -f1

EDIT: Koukám, že jsme si nevšiml to nerekurzivně, tzn tohle řešení je stejně špatně.