{ FS = "="; if ($1 ~ /Hi/) { if (!($1=="Hi")) {print $1;} } else if ($1=="bye") { print $1; } else if ($1=="good") { print $1; } } END { print $1 }