News for hackers. Stuff that matters.
Re:Awk: The Power and Promise of a 40-Year-Old Language by u801e on Tuesday September 07, 2021 @07:43PM (#28451206)
perl actually has a one-liner way of invocation that's modeled after awk.

For example, to print the first field of a line work the default delimiter could be accomplished in perl by running:

    perl -ane 'print $F[0], "\n"'
Where $F[0] is the equivalent of $1 in awk.

There are no comments on this comment yet.