title: Sed: delete a line in multiline variable
body: <p>Is there simple equivalent of</p>
  
  <pre><code>sed -i '/str/d' /file
  </code></pre>
  
  <p>but for multiline variable?</p>
  
  <p>Or I can use only following</p>
  
  <pre><code>var=`echo "$var" | sed "s/str//"`
  </code></pre>