grep within files code example
Example 1: find text in any file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: find text pattern in file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -rnw '/path/to/somewhere/' -e 'pattern'