Search the directory "/etc/" for files of type "f" and print the results, then execute the command "grep -H 'localhost' {}" on each file found.
find /etc/ -type f -print -exec grep -H 'localhost' {} \;