or perl -lne 'print if /localhost/' /etc/hosts --perl -lane 'print if $F[1] =~ /localhost/' /etc/hosts
In reply to Re: What is the simplest way to print a field, as in $3 does in awk
by jmcnamara
in thread What is the simplest way to print a field, as in $3 does in awk
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |