title: Shell script: send sed output to mysql?
body: <p>Trying to pipe the output of a sed replacement on a text file into MySQL like so:</p>
  
  <pre><code>mysql -D WAR | sed -e "s/2000/$START/g" -e "s/2009/$END/g" &lt; WAR.sql
  </code></pre>
  
  <p>That's not working. Nor is:</p>
  
  <pre><code>mysql -D WAR &lt; sed -e "s/2000/$START/g" -e "s/2009/$END/g" &lt; WAR.sql
  </code></pre>
  
  <p>What's the proper solution here?</p>