This question already has an answer here:
- Grep word boundaries 2 answers
When I use the grep command, all occurrences of a word are picked up, even if they are part of other words. For example, if I use grep to find occurrences of the word 'the' it will also highlight 'the' in 'theatre'
Is there a way to adapt the grep command so that it only picks up full words, not part of words?