Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: listing sub-drectories with most files in
- X-seq: zsh-users 16304
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: listing sub-drectories with most files in
- Date: Fri, 2 Sep 2011 18:30:13 +0000 (UTC)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns9F54A6DEAC33Bzzappergmailcom@80.91.229.10> <110902100313.ZM8455@torch.brasslantern.com>
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