Sometimes we need to search in only .php, .inc, .txt or template files for a string. Search can take very long time if there are thausend of files or GB-sized files(logs, xml/csv data etc). We can ignore all other files with a find-grep combination and save performance.
find /home/USERNAME -name *.php -exec grep -l 'MYSTRING' {} \;