grep all text files in a directory code example
Example 1: find text in folder
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: find text pattern in file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 3: ubuntu grep text in files
grep -r "mydomain.com" /etc/apache2/