OT: Re: [plug] Manipulating a text file

Anthony J. Breeds-Taurima tony at cantech.net.au
Mon Feb 5 22:17:04 WST 2001


On Mon, 5 Feb 2001, Steve Vertigan wrote:

> I haven't got round to learning cut or awk but this is one way to do it
> with perl.
> # perl -F: -ane 'print "$F[0]\n";' /etc/passwd

You can save yourself 4 characters by
perl -F: -lane 'print $F[0]' /etc/passwd

But then again that wasn't the point.


Yours Tony.

/*
 * "The significant problems we face cannot be solved at the
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */




More information about the plug mailing list