sdiff
From NetBSD Wiki
Contents |
Description
sdiff uses the output of the diff command to produce a side-by-side listing of two files indicating lines that are different.
Lines of the two files are printed with a blank gutter between them if the lines are identical,
a < in the gutter if the line appears only in filename1,
a > in the gutter if the line appears only in filename2,
and a | for lines that are different.
GNU sdiff(1) has been replaced by a BSD licensed sdiff, which was imported from OpenBSD to the NetBSD source tree on the 18th of February 2007.
Example
$ sdiff myfirst.txt mysecond.txt
same same
diff | different
a <
> b
