title: grep + grep + sed = sed: no input files
body: <p>Can anybody help me please?</p>
  
  <pre><code>grep " 287 " file.txt | grep "HI" | sed -i 's/HIS/HID/g' 
  
  sed: no input files
  </code></pre>
  
  <p>Tried also xargs </p>
  
  <pre><code>grep " 287 " file.txt | grep HI | xargs sed -i 's/HIS/HID/g'
  sed: invalid option -- '6'
  </code></pre>
  
  <p>This works fine</p>
  
  <pre><code>grep " 287 " file.txt | grep HI
  </code></pre>