Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: backing up with zsh



Hi!

Thanks for feedback, Mark!  :-)

Quoting Mark Borges (mdb@xxxxxxxxxxxx):
>  $ 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...]



Messages sorted by: Reverse Date, Date, Thread, Author