how to use grep to search a word in a given input code example Example: ubuntu grep text in files grep -r "mydomain.com" /etc/apache2/