grep string in directory code example
Example 1: ubuntu grep text in files
grep -r "mydomain.com" /etc/apache2/
Example 2: grep search for string in directory
grep -nr 'yourString*' .
grep -r "mydomain.com" /etc/apache2/
grep -nr 'yourString*' .