Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Segregating a Global Alias



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