title: How do I get sed to read from standard input?
body: <p>I am trying</p>
  
  <pre><code>grep searchterm myfile.csv | sed 's/replaceme/withthis/g'
  </code></pre>
  
  <p>and getting</p>
  
  <pre><code>unknown option to `s'
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Edit:</p>
  
  <p>As per the comments the code is actually correct.  My full code resembled something like the following</p>
  
  <pre><code>grep searchterm myfile.csv | sed 's/replaceme/withthis/g'
  # my comment
  </code></pre>
  
  <p>And it appears that for some reason my comment was being fed as input into sed. Very strange.</p>