Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting rid of temporaries...
- X-seq: zsh-workers 19068
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: Getting rid of temporaries...
- Date: Thu, 11 Sep 2003 11:39:27 +0200
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh <zsh-workers@xxxxxxxxxx>
- In-reply-to: <1378.1063261796@xxxxxxxxxxx>
- Mail-followup-to: Oliver Kiddle <okiddle@xxxxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <20030910203429.GA354@DervishD> <20030910223845.GA10805@xxxxxxxxxxxxxxxxxx> <1030911010623.ZM7489@xxxxxxxxxxxxxxxxxxxxxxx> <1378.1063261796@xxxxxxxxxxx>
Hi Oliver :)
* Oliver Kiddle <okiddle@xxxxxxxxxxx> dixit:
> > print -l *.??.jpg(e['REPLY=${REPLY%.??.jpg}'])
> Isn't that just the same as:
> print -l *.??.jpg(:r:r)
Yes!! I'm not used with the 'r' flag, and I didn't think of it.
But yes, removing both suffixes at one time is just the same. In
fact, both the .jpg and the two digit number are just suffixes for the
image name.
> Can do the unique with the `e' globbing flag but not without
> temporaries or eval.
How can I do using eval? Assume that I don't have the (u) flag...
Thanks !
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author