Using awk, I need to find a word in a file that matches a regex pattern.
awk
I only want to print the word matched with the pattern.
So if
Off topic, this can be done using the grep also, just posting it here in case if anyone is looking for grep solution
echo 'xxx yyy zzze ' | grep -oE 'yyy'