Forum Moderators: phranque
grep "Email Subject" /home/* grep "Email Subject" /home/*.php # I found an example using {foo,bar} but can't find it in the docs
# I'm also using -l in grep now to just show the filename; I don't think -r is necessary if I use find
find /home/{foo,bar,lorem,ipsum}/public_html/ -type f -name "*.php" -exec grep -l 'Email Subject' {} \; find /home/foo/public_html /home/bar/public_html /home/lorem/public_html /home/ipsum/public_html -type f -name "*.php" -exec grep -l 'Email Subject' {} \; grep 'Email Subject' /home/foo/public_html/*.php /home/bar/public_html/*.php /home/lorem/public_html/*.php /home/ipsum/public_html/*.php