My dummy file looks like this:
C1 C2 C3 1 a snow 2 b snowman snow c sowman
I want to get line if ther
Print lines where the third field is either snow or snowman only:
snow
snowman
awk '$3~/^snow(man)?$/' file