sdiff
[
options
]
file1
file2
Produce a side-by-side comparison of file1
with file2
. Output is:
- text text
Identical lines.
- text
<
Line that exists only in file1
.
>
text
Line that exists only in file2
.
- text
| text
Lines that are different.
-l
List only lines of file1
that are identical.
-o
outfile
Send identical lines of file1
and file2
to outfile
; print line differences and edit outfile
by entering, when prompted, the following commands:
-s
Do not print identical lines.
-w
n
Set line length to n
(default is 130).
Show differences using 80 columns and ignore identical lines:
sdiff -s -w80 list.1 list.2