Today I discovered that you can let an regular expression in awk only match to
a specified field. i.e. normally I would try to do something like:
/^[^ ]?.*2.*[ ]/ { print $2 }
to check if the second field contains a 2 and then print it. But awk has the ~
operator which makes this much easier:
$2 ~ /2/ {print $2}