shell script find string in directory all files code example Example: bash find all files containing string grep -r '/path/to/somewhere/' -e 'pattern'