From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25434 invoked from network); 17 Apr 1998 20:50:57 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (7795@203.24.36.3) by ns1.primenet.com.au with SMTP; 17 Apr 1998 20:50:57 -0000 Received: (qmail 4672 invoked from network); 17 Apr 1998 20:50:50 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns2.primenet.com.au with SMTP; 17 Apr 1998 20:50:50 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id QAA00544; Fri, 17 Apr 1998 16:42:50 -0400 (EDT) Resent-Date: Fri, 17 Apr 1998 16:42:38 -0400 (EDT) Message-ID: <19980417224224.O9638@math.fu-berlin.de> Date: Fri, 17 Apr 1998 22:42:24 +0200 From: Sven Guckes To: Mark Borges Cc: zsh-users@math.gatech.edu Subject: Re: backing up with zsh Mail-Followup-To: Mark Borges , zsh-users@math.gatech.edu References: <19980417215617.A9887@math.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Mark Borges on Fri, Apr 17, 1998 at 02:29:39PM -0600 X-Mailer-Info: http://www.math.fu-berlin.de/~guckes/mutt/ Resent-Message-ID: <"ZXnsN1.0.g7.zwxDr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1461 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Hi! Thanks for feedback, Mark! :-) Quoting Mark Borges (mdb@cdc.noaa.gov): > $ echo **/*~*.[Gg][Ii][Ff] ok, but - this just excludes the GIFs. Now, how do I combine this with the BMPs and JPGs, too? Can I use '|' for "or"? Example: $ echo **/*~*.[Gg][Ii][Ff]|[bB][mM][pP]|[jJ][pP][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? > If you need to do more, it might be worth > piping the output of find(1) into tar instead. I didn't get this to work, either. I also seem to get into trouble with different kinds of regular expressions. *sigh* Sven [yes, I should have left three hours ago...]