CmdWiz

7 Streak
Back to vault
Search

Recursive Text Search

grep -rnw './' -e 'TODO'

Functional Description

Recursively searches the current directory for whole-word matches of a pattern.

CategoryBash
Difficultyintermediate

Execution Recipes

Find TODOs
grep -rnw './' -e 'TODO'

Recursively (-r) prints line numbers (-n) for whole-word (-w) matches of TODO.

Official Documentation

View the technical reference