SDIFF(1) | User Commands | SDIFF(1) |
sdiff - print file differences side-by-side
sdiff [-ls] [-o name] [-w width] file1 file2
sdiff presents the lines of file1 and file2 side-by-side in two columns. Lines that are equal in both files are separated by blanks; lines that differ are separated by one of the following characters:
< | the line is in file1 only |
| | the line differs in file1 and file2 |
> | the line is in file2 only. |
This might look as
only in file1 < in both files in both files this line | is different
> only in file2 also in both files also in both files
The behavior of sdiff can be influenced with the following options:
l | Write the lines of the left (first) file to name. |
r | Write the lines of the right (second) file to name. |
s | Do not print equal lines to standard output. |
v | Turn printing of equal lines on. |
e l | Invoke the editor on the lines of the left file and append the result to name. |
e r | Invoke the editor on the lines of the right file. |
e b | Concatenate the lines of both files and invoke the editor on the result. |
e | Invoke the editor with an empty file. |
q | Quit sdiff and do not write further lines to name. |
diff(1), ed(1)
4/30/03 | Heirloom Toolchest |