|SDIFF(1)||General Commands Manual||SDIFF(1)|
] file1 file2
sdiffdisplays two files side by side, with any differences between the two highlighted as follows: new lines are marked with ‘>’; deleted lines are marked with ‘<’; and changed lines are marked with ‘|’.
sdiffcan also be used to interactively merge two files, prompting at each set of differences. See the
-ooption for an explanation. The options are:
VISUAL, below, for details of which editor, if any, is invoked. The commands are as follows:
-wflag is passed to diff(1)).
-ooption. If both
VISUALtakes precedence. If neither
VISUALare set, the default is vi(1).
sdiffutility exits with one of the following values:
sdiffwas written from scratch for the public domain by Ray Lai <firstname.lastname@example.org>.
sdiffsupports most long options supported by GNU sdiff, though some require GNU diff. Tabs are treated as anywhere from one to eight characters wide, depending on the current column. Terminals that treat tabs as eight characters wide will look best.
sdiffmay not work with binary data.
|February 28, 2015||OpenBSD-6.1|