Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: backing up with zsh
- X-seq: zsh-users 1462
- From: Sven Guckes <guckes@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: backing up with zsh
- Date: Fri, 17 Apr 1998 23:00:30 +0200
- Cc: Mark Borges <mdb@xxxxxxxxxxxx>
- In-reply-to: <vkyax4cgur.fsf@xxxxxxxxxxxx>; from Mark Borges on Fri, Apr 17, 1998 at 02:50:52PM -0600
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxxx, Mark Borges <mdb@xxxxxxxxxxxx>
- References: <19980417215617.A9887@xxxxxxxxxxxxxxxxx> <vkzphkchu4.fsf@xxxxxxxxxxxx> <19980417224224.O9638@xxxxxxxxxxxxxxxxx> <vkyax4cgur.fsf@xxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author