title: unix - diff command to output in single-line-per-difference format
body: <p>The version of diff in my cygwin has a number of advanced options which allow me to print out one difference per line.</p>
  
  <p>Given two files one.txt and two.txt.</p>
  
  <p>one.txt:</p>
  
  <pre><code>one
  two
  three
  four
  five
  six
  </code></pre>
  
  <p>two.txt</p>
  
  <pre><code>one
  two2
  three
  four
  five5
  six
  </code></pre>
  
  <p>And running diff in cygwin with the following options/parameters:</p>
  
  <pre><code>diff -y --suppress-common-lines one.txt two.txt
  </code></pre>
  
  <p>Gives an output of:</p>
  
  <pre><code>two   |two2
  five  |five5
  </code></pre>
  
  <p>This is the type of format I'm after whereby one difference is printed out per line.
  On my dev solaris box, the "-y" option is not supported, so I'm stuck with an output which looks like this:</p>
  
  <pre><code>2c2
  &lt; two
  ---
  &gt; two2
  5c5
  &lt; five
  ---
  &gt; five5
  </code></pre>
  
  <p>Does anyone know of a way I can get an output of one difference per line on this solaris box? Maybe using a sed/awk one liner to massage the output from this more primitive diff output? (Please note, I am not able to install a more up-to-date diff version on this solaris box).</p>
  
  <p>Thanks!</p>