From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9403 invoked from network); 5 Feb 2005 02:02:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Feb 2005 02:02:51 -0000 Received: (qmail 54705 invoked from network); 5 Feb 2005 02:02:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Feb 2005 02:02:44 -0000 Received: (qmail 25211 invoked by alias); 5 Feb 2005 02:02:36 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8464 Received: (qmail 10012 invoked from network); 4 Feb 2005 16:56:34 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Feb 2005 16:56:34 -0000 Received: (qmail 47666 invoked from network); 4 Feb 2005 16:55:58 -0000 Received: from wproxy.gmail.com (64.233.184.200) by a.mx.sunsite.dk with SMTP; 4 Feb 2005 16:55:54 -0000 Received: by wproxy.gmail.com with SMTP id 36so381716wri for ; Fri, 04 Feb 2005 08:55:47 -0800 (PST) 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:references; b=c/ywT6LOt6SRzkp18dAzRDVP9zb0xFfxwlJ++5AswtDAnO58Unp26XBeaKZ9wonQACw5mvFbH8y3vrEwgXk8j4MOO5UVhNCYyqaPMSqK5FUI4KGELYPHFwqQIfNXfR96PzoXMoBIJNsiys+cOekZCfjdnzYyEzrtwEdgHiqsyPY= Received: by 10.54.59.37 with SMTP id h37mr129012wra; Fri, 04 Feb 2005 08:55:46 -0800 (PST) Received: by 10.54.59.22 with HTTP; Fri, 4 Feb 2005 08:55:46 -0800 (PST) Message-ID: Date: Fri, 4 Feb 2005 17:55:46 +0100 From: J Reply-To: J To: Eric Smith Subject: Re: list all except Cc: Zsh Users In-Reply-To: <20050204113026.GA4217@fruitcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050204113026.GA4217@fruitcom.com> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 > What is the zsh way to select all files except > those matching a regex? For a regex, I don't know, but you can select the files that don't match a glob pattern. The natural way is to follow the pattern with ~ and the pattern that represent the files you don't want. Suppose you want to match all files except those matching *.pdf : *~*.pdf Suppose you want to match *.pdf except t*.pdf, just write *.pdf~t*.pdf And that's it. -- J "- Wakai ya na... - Anata yori mo na !" -- Kunisaki Yukito