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