develooper Front page | perl.perl6.users | Postings from August 2017

Need awk print sub

Thread Next
From:
ToddAndMargo
Date:
August 4, 2017 20:01
Subject:
Need awk print sub
Message ID:
4534d687-88ce-a6f0-3546-77b1d4e9687e@zoho.com
Hi All,

How do I do this with a perl one liner?

$ echo "a b c d" | awk '{print $2}'
b

Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About