From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2151 invoked by alias); 25 Mar 2014 14:07:39 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18676 Received: (qmail 25827 invoked from network); 25 Mar 2014 14:07:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: Segregating a Global Alias Date: Tue, 25 Mar 2014 14:07:04 +0000 (UTC) Organization: Your Company Message-ID: References: <140324153628.ZM4798@torch.brasslantern.com> <140324185656.ZM4923@torch.brasslantern.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2.25.243.107 User-Agent: Xnews/2009.05.01 X-Antivirus: avast! (VPS 140325-0, 03/25/2014), Outbound message X-Antivirus-Status: Clean Bart Schaefer 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