title: running into error with multiline sed statement
body: <p>I have a very long sed statement that is 6 lines long strung together with -e. I am doing multiple replacements and writing to the same file.</p>
  
  <p>It throws me an error for any sed statement over one line. How can I rectify this?</p>
  
  <p>Some have suggested using variables to reduce the text length, but even still I think that solution won't work for me. Is there another simpler way to make this work?</p>
  
  <p>Thanks.</p>
  
  <p>edit: 
  I just wasn't using my line breaks properly.
  Working script:</p>
  
  <pre><code>sed -e 's/horse.*/300/g' \
  -e 's/goat.*/320/g' \
  -e 's/dog.*/310/g' \ 
  -e 's/wolf.*/330/g' &lt; "$file1" &gt; "$file2"
  </code></pre>
  
  <p>Thanks again.</p>