Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Excluding files & directories from a glob
- X-seq: zsh-users 9498
- From: Hannu Koivisto <azure@xxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: Excluding files & directories from a glob
- Date: Fri, 14 Oct 2005 21:43:34 +0300
- Cc: zzapper <david@xxxxxxxxxx>, zsh-users@xxxxxxxxxx
- In-reply-to: <20051004171438.4165d915.pws@xxxxxxx> (Peter Stephenson's message of "Tue, 4 Oct 2005 17:14:38 +0100")
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <t495k1hltml46t91vsedbah8n6h2knijgg@xxxxxxx> <20051004171438.4165d915.pws@xxxxxxx>
- Sender: Hannu Koivisto <Hannu.Koivisto@xxxxxxxxxxx>
Peter Stephenson <pws@xxxxxxx> writes:
> zzapper <david@xxxxxxxxxx> wrote:
...
>> grep -i 'host' **/(*.cfm~(ctpigeonbot|env).cfm)
>>
>> But I would like it to also ignore sub-directories named junk*
>
> With extendedglob, the following should work:
>
> grep -i 'host' **/(*.cfm~(ctpigeonbot|env).cfm)~*((#s)|/)junk*/*(.)
Wouldn't this
grep -i 'host' (^junk*/)#*.cfm~(ctpigeonbot|env).cfm
be a simpler way?
--
Hannu
Messages sorted by:
Reverse Date,
Date,
Thread,
Author