From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20215 invoked from network); 20 Apr 1998 08:52:19 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 20 Apr 1998 08:52:19 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA03011; Mon, 20 Apr 1998 04:47:55 -0400 (EDT) Resent-Date: Mon, 20 Apr 1998 04:47:38 -0400 (EDT) From: Andrew Main Message-Id: <199804200847.JAA09252@taos.demon.co.uk> Subject: Re: backing up with zsh To: guckes@math.fu-berlin.de (Sven Guckes) Date: Mon, 20 Apr 1998 09:47:14 +0100 (BST) Cc: mdb@cdc.noaa.gov, zsh-users@math.gatech.edu In-Reply-To: <19980417224224.O9638@math.fu-berlin.de> from "Sven Guckes" at Apr 17, 98 10:42:24 pm X-Loop: zefram@tao.co.uk X-Phase: The Moon is Waning Crescent (45% of Full) X-Stardate: [-30]1031.83 X-US-Congress: moronic fuckers X-Headers: OTT X-Mouse: +++ ????? +++ Out Of Cheese Error. Redo From Start. X-Parrot: no, it's only resting. X-Personality: INTJ X-email-is-not-HTML: X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"FjMQZ1.0.ak.ekmEr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1475 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Sven Guckes wrote: >Can I use '|' for "or"? Example: > > $ echo **/*~*.[Gg][Ii][Ff]|[bB][mM][pP]|[jJ][pP][gG] echo **/*~*.([Gg][Ii][Ff]|[bB][mM][pP]|[jJ][pP](|[Ee])[gG]) >I'd rather be using something like this: > > $ echo **/*~(*.[bmp|gif|jpeg|jpg]/i) > >.. where "/i" means "case insensitive". >Is there a way with zsh globbing? No. zsh has glob patterns, not regular expressions. -zefram