[Israel.pm] awk equivalent

Oron Peled oron at actcom.co.il
Mon Mar 22 22:33:43 PST 2004

To try and be short and close to the source:

On Monday 22 March 2004 16:09, Yossi.Itzkovich at ecitele.com wrote:
> 1. awk '{print $3}'  filename

perl -ape 'print "$F[2]\n";' filename

> 2. awk -Fc '{print $3}'  filename   ( "c" is single delimiter character)

perl -Fc -ape 'print "$F[2]\n";' filename


Oron Peled                             Voice/Fax: +972-4-8228492
oron at actcom.co.il                  http://www.actcom.co.il/~oron

"Complaining that [Linux] doesn't work well with Windows is like ...
oh, say, evaluating an early automobile and complaining that there's no
place to hitch up a horse."

Daniel Dvorkin, July 28, 2003 

More information about the Perl mailing list