Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Excluding files & directories from a glob
- X-seq: zsh-users 9480
- From: Jean Chalard <jean.chalard@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: Excluding files & directories from a glob
- Date: Thu, 6 Oct 2005 19:52:21 +0900
- Cc: zsh-users@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HUrk1Abg/zU5ookBz7xRdL9nd3T2CoLQYK+ob6BPDtdT82R8LW9g8+NvmLgWNmv47AR5b1wmXcUEzx0NRwQtG76qHWKUxCLWtBgNTNiiQKSCIbrn4201f7MplxVoM9j1OfmQZN4Ofni1jcseK/FxW0mwHAr6SMBaRnlkQ4HSSGc=
- In-reply-to: <i6u9k191plhuee4nk3djrls6nr8bdbfrpa@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <t495k1hltml46t91vsedbah8n6h2knijgg@xxxxxxx> <20051004171438.4165d915.pws@xxxxxxx> <b5i5k1pqbrp6cibu2bcp16m7gpgq3hb4mr@xxxxxxx> <fb6be96e0510042001v2ccae4b4ha368452509e3d274@xxxxxxxxxxxxxx> <opp9k11dhp0stkp1dffh9dqmviairhcr2b@xxxxxxx> <fb6be96e0510060210y7d88abd0xabe2404d3aa209da@xxxxxxxxxxxxxx> <i6u9k191plhuee4nk3djrls6nr8bdbfrpa@xxxxxxx>
- Reply-to: Jean Chalard <jean.chalard@xxxxxxxxx>
> >> >> > grep -i 'host' **/(*.cfm~(ctpigeonbot|env).cfm)~*((#s)|/)junk*/*(.)
> >>
> >> Ok I give in what does the qualifier #s mean and do, and where is it in the doc.
> >
> >The #s qualifier matches the start of a string. In the manual you can find its
> >description on the "13.8 Filename generation" section, under 13.8.4 :
> >globbing flags.
> >Here is the relevant chunk of documentation :
> Thanx Jean
> Now I understand the above.
>
> However the following (simplified example) still seems to work:-
>
> list all files fred unless they are in a subdirectory *junk*
>
> ls **/fred~*junk*/*
Of course it does ! It's just *less* restrictive than the pattern Peter wrote.
If you have a subdirectory named not_junk, this pattern will skip all
its contents,
whereas Peter's pattern will include it.
--
J
"If you wish to leave a record of your call,
please state your messij at the sound of the tone."
Messages sorted by:
Reverse Date,
Date,
Thread,
Author