bash search for file that contains string and ends with string code example
Example 1: bash find all files containing string
grep -r '/path/to/somewhere/' -e 'pattern'
Example 2: bash find term in files
grep "some string" . -R
grep -r '/path/to/somewhere/' -e 'pattern'
grep "some string" . -R