linux search contents of files code example
Example 1: find text in any file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: shell find string in directory
grep -R "string_to_search" *
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -R "string_to_search" *