title: Pipe sed to diff
body: <p>I want to see the <code>diff</code> between a paragraph in the middle of a file and a file containing a single paragraph. </p>
  
  <p>The paragraph is on line <code>60</code> of file <code>foo</code>, and file <code>bar</code> contains only that paragraph with possible minor differences. </p>
  
  <p>I can extract that paragraph using <code>sed</code> thusly: <code>sed -n 60,60p foo</code>. How can I use this in <code>diff</code>? </p>
  
  <p>The following <em>don't</em> work:</p>
  
  <pre><code>sed -n 60,60p foo | diff bar # diff: missing operand after `foo`
  diff bar `sed -n 60,60p foo` # diff: extra operand `in`
  </code></pre>
  
  <p>I can do:</p>
  
  <pre><code>sed -n 60,60p foo &gt;&gt; tempfile; diff bar tempfile
  </code></pre>
  
  <p>Is there a solution that doesn't require me to store somewhere temporarily using a pipe?</p>