Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Excluding files & directories from a glob



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