cmd

Parallel diff

$ diff -W80 -y one two
this is it                            | this si it
and this is that                        and this is that

[The relevant option is '-y']. Shows all the lines of both files in parallel (line by line) and places a vertical line ‘|’ between them when the corresponding lines differ. The -W option sets the ‘line width’, each file gets half its value (so if you want to see long lines completely, you need something like -W161 or so).

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*Required Fields