Matching a Whole Word
You want lines containing the word error but not errors or terror. Which command?
error
errors
terror
Choose one answer
grep -v 'errors' app.log
grep 'error' app.log
grep -x 'error' app.log
grep -w 'error' app.log