title: Sed operation on streaming data
body: <p>Need to perform <code>sed</code> operation on streaming data</p>
  
  <pre><code>tail -f sourcefile | sed -n 's/text1/text2/p' &gt;~/destinationfile
  </code></pre>
  
  <p>I tried the above command but could not get it to work.</p>