Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Perl and ZSH (WAS: Re: backing up with zsh)
- X-seq: zsh-users 1463
- From: tep@xxxxxxxxxxxx
- To: guckes@xxxxxxxxxxxxxxxxx (Sven Guckes)
- Subject: Perl and ZSH (WAS: Re: backing up with zsh)
- Date: Fri, 17 Apr 1998 19:44:05 -0500 (CDT)
- Cc: zsh-users@xxxxxxxxxxxxxxx, mdb@xxxxxxxxxxxx
- In-reply-to: <19980417230030.A10873@xxxxxxxxxxxxxxxxx> from Sven Guckes at "Apr 17, 98 11:00:30 pm"
Thus Spake Sven Guckes:
> Quoting Mark Borges (mdb@xxxxxxxxxxxx):
> > > $ 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@xxxxxxxxxxxx [] []
a pencom company
Messages sorted by:
Reverse Date,
Date,
Thread,
Author