I have a heap of files in a heap of directories that I need to remove a single line of text from. So far the only thing that I can find is the following but its not quite what I'm looking for.

perl -pi.bak -e s/oldstring/newstring/g filename(s)
I need to traverse the entire directory structure on my system looking at /home/vhosts/xyz.com/index.shtml for a string <!--#exec cgi="/cgi-bin/count.cgi" --> and delete that entire line. All the files will be called index.shtml but xyz.com will be different in every instance.

Is such a command possible or do I have to do it manually?

Any suggestions are greatly appreciated!