How to grep for the whole word

You want the -w option to specify that it’s the end of a word.

find . | xargs grep -sw 's:text'

Leave a Comment