From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4406 invoked from network); 6 Oct 2005 10:27:09 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Oct 2005 10:27:09 -0000 Received: (qmail 78495 invoked from network); 6 Oct 2005 10:27:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Oct 2005 10:27:02 -0000 Received: (qmail 17988 invoked by alias); 6 Oct 2005 10:26:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9479 Received: (qmail 17975 invoked from network); 6 Oct 2005 10:26:55 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Oct 2005 10:26:54 -0000 Received: (qmail 77528 invoked from network); 6 Oct 2005 10:26:54 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 6 Oct 2005 10:26:54 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ENSw9-00011G-NQ for zsh-users@sunsite.dk; Thu, 06 Oct 2005 12:25:17 +0200 Received: from 212.84.119.241 ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Oct 2005 12:25:17 +0200 Received: from david by 212.84.119.241 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Oct 2005 12:25:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: Excluding files & directories from a glob Date: Thu, 06 Oct 2005 11:23:47 +0100 Message-ID: References: <20051004171438.4165d915.pws@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 212.84.119.241 X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_BY_IP, RCVD_NUMERIC_HELO autolearn=no version=3.0.4 On Thu, 6 Oct 2005 18:10:53 +0900, wrote: >> >> > 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*/* -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/