Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: listing sub-drectories with most files in



Bart Schaefer wrote in news:110902100313.ZM8455@xxxxxxxxxxxxxxxxxxxxxx:



> 
> This will give you the directories and the count of files in each,
> in ascending order by number of files:
> 
> print **/*(/ne{'reply=($REPLY/*(N.)); reply=($#reply\:$REPLY)'})


Bart: This will be super useful thanks.

Minor quibble:  on my system (Cygwin) it all jumbled onto one line I had to 
pipe it into Vim. Also in reverse order but that's not a problem.



-- 
zzapper
http://zzapper.co.uk/ Technical Tips



Messages sorted by: Reverse Date, Date, Thread, Author