search for a pattern in a directory code example
Example 1: find text in folder
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: bash find term in files
grep "some string" . -R
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep "some string" . -R