Find all files with a name ending in ".htm*" in the current directory and its subdirectories, and execute the command "grep -l "ERROR" {}" on each of them.
find ~ -name "*.htm*" -exec grep -l "ERROR" {} \;