Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Segregating a Global Alias
- X-seq: zsh-users 18676
- From: zzapper <david@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Segregating a Global Alias
- Date: Tue, 25 Mar 2014 14:07:04 +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: Your Company
- References: <XnsA2FA95D9D45BDdavidrayninfocouk@80.91.229.13> <CAH+w=7baCBR0KK+Uvhu8D53CPsVNvq4YSVsrbb35H1ReCHQZAA@mail.gmail.com> <XnsA2FAB2C8DE4F8davidrayninfocouk@80.91.229.13> <XnsA2FAB51B6E85Bdavidrayninfocouk@80.91.229.13> <140324153628.ZM4798@torch.brasslantern.com> <140324185656.ZM4923@torch.brasslantern.com>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote in news:140324185656.ZM4923
>
> Phil reminds me off-list that $. is not automatically reset when the
> value of $ARGV changes, so for multiple files you actually need:
>
> perl -pe '$. == 1 && open STDOUT,"> $ARGV.txt";
> s/(<\/\w+>)/$1\n/g;
> close ARGV if eof;' NF
>
> which might make this answer less appealing.
>
LOL
--
zzapper
https://twitter.com/dailyzshtip
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author