search for words in a file linux code example
Example 1: file search linux by text
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: how to find a word in files linux
# this will search all subdirectories for text (no case sensitivity)
grep -inR "your text" .