Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Any easier way of parsing this file?
- X-seq: zsh-users 9528
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Any easier way of parsing this file?
- Date: Wed, 19 Oct 2005 21:29:36 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <1051019154832.ZM1372@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20051018225336.GA957@DervishD> <1051019015810.ZM32176@xxxxxxxxxxxxxxxxxxxxxxx> <20051019073748.GB1012@DervishD> <1051019154832.ZM1372@xxxxxxxxxxxxxxxxxxxxxxx>
Hi Bart :)
* Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> On Oct 19, 9:37am, DervishD wrote:
> }
> } I was more interested in an alternative for the "print | while read"
>
> Such as
> for line in "${(f)data}"
> perhaps?
Yes!. I tried that the first time and it didn't work, probably
because of the \C-M mess. Anyway I dropped that while I still hadn't
the \C-M thing fixed. Now that it is fixed I can try that. In fact
the code is still there, but commented ;)
Thanks for pointing :)
> Actually in 4.2.5 you can probably do
>
> for label content in "${(j/=/s/=/)${(f)data}}"
>
> as long as none of the content parts contain equal signs.
They can, unfortunately :(
Thanks for the help, Bart :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author