Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (strings)
What is the simplest method in perl of achieving the following from awk?
awk ' $2 ~ /localhost/ { print $0 } ' /etc/hosts
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: What is the simplest way to print a field, as in $3 does in awk⭐
by jmcnamara (Monsignor) on Oct 23, 2001 at 15:46 UTC | |
Re: What is the simplest way to print a field, as in $3 does in awk⭐
by projekt21 (Friar) on Oct 23, 2001 at 15:47 UTC |
Back to
Seekers of Perl Wisdom