Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: backing up with zsh
- X-seq: zsh-users 1475
- From: Andrew Main <zefram@xxxxxxxxx>
- To: guckes@xxxxxxxxxxxxxxxxx (Sven Guckes)
- Subject: Re: backing up with zsh
- Date: Mon, 20 Apr 1998 09:47:14 +0100 (BST)
- Cc: mdb@xxxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <19980417224224.O9638@xxxxxxxxxxxxxxxxx> from "Sven Guckes" at Apr 17, 98 10:42:24 pm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author