I can use grep -Fxq search-string text-file
outside of my awk, and it works they way I'd expect (found here How to test if string exists in file with Bash shell?). But, when I try to use that same grep command as an if statement inside awk, it seems to do nothing. Here's the basic usage I'm trying:
cat /var/log/somelogfile | awk '{ if (grep -Fxq $1 textfile) print "useful command $1" }'