On Mon, 2008-10-06 at 14:26 -0700, [EMAIL PROTECTED] wrote: > This one-liner does pretty much what I would want but I do not know > how to convert it to a script. > > perl -lane 'print $F[2] if /searchterm/' input.txt
See `perldoc perlrun` and look up -a and -n under "Command Switches". -- Just my 0.00000002 million dollars worth, Shawn Linux is obsolete. -- Andrew Tanenbaum -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/