bash search for text in files code example
Example 1: bash find all files containing string
grep -r '/path/to/somewhere/' -e 'pattern'
Example 2: bash find text in specific file
find <your directory path> -name "*.file_type" -type f | xargs grep "word"
Example 3: bash find term in files
grep "some string" . -R