From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26753 invoked from network); 18 Apr 1998 00:47:54 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 18 Apr 1998 00:47:54 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id UAA05017; Fri, 17 Apr 1998 20:44:24 -0400 (EDT) Resent-Date: Fri, 17 Apr 1998 20:44:12 -0400 (EDT) From: tep@colltech.com Message-Id: <199804180044.TAA19945@psasolar.psa.pencom.com> Subject: Perl and ZSH (WAS: Re: backing up with zsh) In-Reply-To: <19980417230030.A10873@math.fu-berlin.de> from Sven Guckes at "Apr 17, 98 11:00:30 pm" To: guckes@math.fu-berlin.de (Sven Guckes) Date: Fri, 17 Apr 1998 19:44:05 -0500 (CDT) Cc: zsh-users@math.gatech.edu, mdb@cdc.noaa.gov X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"NW_Ul3.0.nD1.RT_Dr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1463 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Thus Spake Sven Guckes: > Quoting Mark Borges (mdb@cdc.noaa.gov): > > > $ echo **/*~*.[Gg][Ii][Ff]|[bB][mM][pP]|[jJ][pP][gG] > > Close -- you forgot the parens: > > $ echo **/*~*.([Gg][Ii][Ff]|[bB][mM][pP]|[jJ][pP][gG]) > > I think you'll also have to put `jpeg' and it's case variant as well. > > You mean > $ echo **/*~*.([Gg][Ii][Ff]|[bB][mM][pP]|[jJ][pP][gG]|[jJ][pP][eE][gG]) > > This is getting "out of hand". :-( > > > There may be an equivalent for `jpe?g', but I don't see it offhand. > > Anyone? > > > SG> I'd rather be using something like this: > > SG> $ echo **/*~(*.[bmp|gif|jpeg|jpg]/i) > > SG> .. where "/i" means "case insensitive". > > Sure. perl -e ''. ;-). > > So - perl has better regexpr than the zsh here? > > Sven > I've actually been tinkering with the idea of embedding a Perl interpreter inside ZSH but I got stumped when it came time to think about sharing data (i.e. variables and such). Anyone care to assist in this endeavor?? :-) Tim. -- ____________________________________________ _ _ Timothy E. Peoples |_| C o l l e c t i v e |_| Senior Consultant |_ technologies _| tep@colltech.com [] [] a pencom company