title: How to count differences between two files on linux?
body: <p>I need to work with large files and must find differences between two. And I don't need the different bits, but the number of differences.</p>
  
  <p>To find the number of different rows I come up with </p>
  
  <pre><code>diff --suppress-common-lines --speed-large-files -y File1 File2 | wc -l
  </code></pre>
  
  <p>And it works, but is there a better way to do it?</p>
  
  <p>And how to count the exact number of differences (with standard tools like bash, diff, awk, sed some old version of perl)?</p>