-w —word-regexp Source(s) https://unix.stackexchange.com/a/206910/482223 use grep -w (or `grep —word-regexp)