command line search for text in files code example
Example 1: find text pattern in file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: ubuntu grep text in files
grep -r "mydomain.com" /etc/apache2/
Example 3: how to search keyword in linux
grep -w phoenix *