find ./ -type f -name \*.php -exec grep -il "search_term" {} \;
Searches the current directory and deeper for files ending with the 'php' extension, where the file itself contains 'search_term'. Useful if you're searching a large website with lots of images and you only want to find a certain function or variable.
Schetan posts on Apr 23, 2008 at 04:20
You need to create an account or log in to post comments to this site.