find word in a txt linux code example
Example 1: find text pattern in file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: file search linux by text
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -rnw '/path/to/somewhere/' -e 'pattern'