Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (strings)
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 |