filter all lines where the second word is some.host

awk '{ if ($2 == "some.host") print $0 }'`

lower case string

# produces "yes"
echo "YES" | awk '{ print tolower($0) }'