title: Line numbers with side-by-side diff
body: <p>I want to write a shell script that diffs two files, and dump the result into another file.  </p>
  
  <p>I find <code>sdiff</code> to be more intuitive than just <code>diff</code>.  However, <code>sdiff</code> doesn't print out the line numbers of where the differences are.  I also tried <code>vimdiff</code>, which shows me line numbers, but I'm not sure how to dump the results into a file from a shell script.</p>
  
  <p>So far, this is what I am using:</p>
  
  <pre><code>sdiff -s file1 file2
  </code></pre>
  
  <p>Is there a way to get side-by-side diffs with line numbers? </p>