title: execute command on files returned by grep
body: <p>Say I want to edit every .html file in a directory one after the other using vim, I can do this with:
  <code>find . -name "*.html" -exec vim {} \;</code></p>
  
  <p>But what if I only want to edit every html file containing a certain string one after the other?  I use grep to find files containing those strings, but how can I pipe each one to vim similar to the find command.  Perphaps I should use something other than grep, or somehow pipe the find command to grep and then exec vim.  Does anyone know how to edit files containing a certain string one after the other, in the same fashion the <code>find</code> command example I give above would?</p>