perl -lane 'print if $F[1] =~ /localhost/' /etc/hosts