grep string in all files code example
Example 1: grep in all files
grep -rni "string" *
Example 2: find text in any file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -rni "string" *
grep -rnw '/path/to/somewhere/' -e 'pattern'