Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Pruning Recursive Glob
- X-seq: zsh-users 13762
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Chris Johnson <cjohnson@xxxxxxxxxxxx>
- Subject: Re: Pruning Recursive Glob
- Date: Mon, 26 Jan 2009 19:56:00 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20090126145329.GB26961@namib>
- Mail-followup-to: Chris Johnson <cjohnson@xxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090126141155.GA26716@namib> <200901261416.n0QEG1B3031727@xxxxxxxxxxxxxx> <20090126141155.GA26716@namib> <237967ef0901260615t42bd8443oeba97554f1e1dd7@xxxxxxxxxxxxxx> <20090126145329.GB26961@namib>
On Mon, Jan 26, 2009 at 09:53:29AM -0500, Chris Johnson wrote:
[...]
> I needed:
>
> $ ls -d **/*~*/CVS
>
> However, though this omits the CVS directories themselves, it does
> generate CVS/Entries and so on. Peter's pattern seems to work great.
[...]
Yes, you'd need:
ls -d **/*~(*/|)CVS(|/*)
The pattern on the rhs of ~ applies to the whole path (and / is
not special, it's pattern matching not globbing there).
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author