grep searches the lines of a file or an output that match a pattern, text or regular expression. Common options are -i (ignore case), -n (line numbers), -r (recursive in a directory) and -v (non-matching lines).
Example
grep -rn 'TODO' src/grep searches the lines of a file or an output that match a pattern, text or regular expression. Common options are -i (ignore case), -n (line numbers), -r (recursive in a directory) and -v (non-matching lines).
grep -rn 'TODO' src/