cat /etc/hosts | perl -ne 'print if (split(/\s+/,$_))[1] =~ localhost'
In reply to Re: What is the simplest way to print a field, as in $3 does in awk
by projekt21
in thread What is the simplest way to print a field, as in $3 does in awk
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |