grep find text in directory code example
Example 1: bash find all files containing string
grep -r '/path/to/somewhere/' -e 'pattern'
Example 2: linux search for a given string in all files recursively
$ grep -r "String to be searched goes here" *
Example 3: grep in folder
grep -nr 'yourString*' .