title: Searching and replacing a line in linux?
body: <p>How can I find and replace every instance of a {% extends "a/b/c/d" %} with another {% extends "e/f/g/h" %} in every file in a directory?  Also, if anything comes after the statement on the same line I would like to keep it.</p>
  
  <p>I've looked over using perl like the following:</p>
  
  <pre><code>perl -pi -e 's/find/replace/g' *.html
  </code></pre>
  
  <p>But I don't know perl and don't know the best way to go about escaping all of the characters in my find/replace strings (ie {. /, ", etc).</p>
  
  <p>Any easier solution?</p>