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