Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re[2]: Segregating a Global Alias
- X-seq: zsh-users 18666
- From: "Manuel Presnitz" <mpy@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re[2]: Segregating a Global Alias
- Date: Mon, 24 Mar 2014 19:04:03 +0100
- In-reply-to: <XnsA2FAB51B6E85Bdavidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA2FA95D9D45BDdavidrayninfocouk@80.91.229.13> <CAH+w=7baCBR0KK+Uvhu8D53CPsVNvq4YSVsrbb35H1ReCHQZAA@mail.gmail.com> <XnsA2FAB2C8DE4F8davidrayninfocouk@80.91.229.13> <XnsA2FAB51B6E85Bdavidrayninfocouk@80.91.229.13>
- Reply-to: mpy@xxxxxxx
zzapper wrote:
> perl -ne 's/(<\/\w+>)/$1\n/g; print' < NF > {NF}.txt ### Doesn't
> work
> (...)
> But can anyone else trump Bart's or my attempt?
This doesn't look very sophisticated, but seems to work -- and is rather close to your original approach:
perl -ne 's/(<\/\w+>)/$1\n/g; print' < NF > $(print NF).txt
---Manuel.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author