Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Segregating a Global Alias
- X-seq: zsh-users 18664
- From: zzapper <david@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Segregating a Global Alias
- Date: Mon, 24 Mar 2014 17:34:15 +0000 (UTC)
- 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
- Organization: rayninfo
- References: <XnsA2FA95D9D45BDdavidrayninfocouk@80.91.229.13> <CAH+w=7baCBR0KK+Uvhu8D53CPsVNvq4YSVsrbb35H1ReCHQZAA@mail.gmail.com>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote in
news:CAH+w=7baCBR0KK+Uvhu8D53CPsVNvq4YSVsrbb35H1ReCHQZAA@xxxxxxxxxxxxxx:
>
> (){ perl -ne 's/(<\/\w+>)/$1\n/g; print' < $1 > $1.txt } NF
>
inspired by this
for f in NF ; perl -ne 's/(<\/\w+>)/$1\n/g; print' < $f > $f.txt
--
zzapper
https://twitter.com/dailyzshtip
Messages sorted by:
Reverse Date,
Date,
Thread,
Author