grep search all subdirectories and files code example
Example 1: grep in folder
grep -nr 'yourString*' .
Example 2: ubuntu grep text in files
grep -r "mydomain.com" /etc/apache2/
grep -nr 'yourString*' .
grep -r "mydomain.com" /etc/apache2/