linux grep find text in files code example
Example 1: find text in folder
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: linux search for line in file
grep -R "keyword" /directory/
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -R "keyword" /directory/