adding a filename into a data file

Tony Edwardson Tony.Edwardson at
Mon Nov 5 08:10:08 PST 2012

I have a pdf explaining loads of perl one-liners if anyone is interested

-----Original Message-----
From: MiltonKeynes-pm [ at] On Behalf Of Tom Hukins
Sent: 05 November 2012 16:01
To: miltonkeynes-pm at
Subject: Re: adding a filename into a data file

On Mon, Nov 05, 2012 at 03:32:11PM +0000, Ant Mitchell wrote:
> perl -npe 'print "$ARGV "' *

Indeed.  In the spirit of "teach a man to fish", it's worth mentioning
that Perl mentions the "-npe" switches in its "perlrun" documentation
and the "$ARGV" variable in "perlvar".

You should find this documentation installed alongside perl, although
some Linux distributions like to cripple their installations and omit
it.  You can also find it on the Web at

MiltonKeynes-pm mailing list
MiltonKeynes-pm at

A copy of the LCH.Clearnet e-mail disclaimer can be found at:  

LCH.Clearnet Limited, Registered Office: Aldgate House, 33 Aldgate High Street, London EC3N 1EA. 
Recognised as a Clearing House under the Financial Services & Markets Act 2000. Reg in England No.25932.
LCH.Clearnet SA, Siège Social, 18 rue du Quatre Septembre, 75002 Paris, Chambre de Compensation conformément au Code Monétaire et Financier.

More information about the MiltonKeynes-pm mailing list