Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: listing sub-drectories with most files in
- X-seq: zsh-users 16306
- From: Thor Andreassen <ta@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: listing sub-drectories with most files in
- Date: Sat, 3 Sep 2011 14:02:08 +0200
- In-reply-to: <Xns9F54A6DEAC33Bzzappergmailcom@80.91.229.10>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <Xns9F54A6DEAC33Bzzappergmailcom@80.91.229.10>
On Fri, Sep 02, 2011 at 03:24:14PM +0000, zzapper wrote:
> Hi,
> I'm grepping a tree (grep string **/*) and want to list the subdirectories
> which have the most files. This is because the grep is taking ages and I'm
> hoping I can exclude some of these.
>
> I guess an easy job for zsh?
Alternative way:
find *(/) | cut -d/ -f1 | uniq -c | sort -n
--
best regards
Thor Andreassen
Messages sorted by:
Reverse Date,
Date,
Thread,
Author