Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Excluding files & directories from a glob
- X-seq: zsh-users 9471
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Excluding files & directories from a glob
- Date: Tue, 04 Oct 2005 19:25:47 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <t495k1hltml46t91vsedbah8n6h2knijgg@xxxxxxx> <20051004171438.4165d915.pws@xxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Tue, 4 Oct 2005 17:14:38 +0100, wrote:
>zzapper <david@xxxxxxxxxx> wrote:
>> The following works just fine
>>
>> # grep all coldfusion files except ctpigeon.cfm and env.cfm
>>
>> 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*/*(.)
>
Is the following OK/ (appears 2b?)
grep -i 'host' **/(*.cfm~ctpigeonbot.cfm)~junk*/*
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author