search all file contents in a folder linux code example
Example 1: linux search for line in file
grep -R "keyword" /directory/
Example 2: command line how to find all files that have a string
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -R "keyword" /directory/
grep -rnw '/path/to/somewhere/' -e 'pattern'