1 .\" $NetBSD: sdiff.1,v 1.4 2014/03/18 18:20:45 riastradh Exp $
2 .\" $OpenBSD: sdiff.1,v 1.11 2007/02/22 02:50:56 ray Exp $
4 .\" Written by Raymond Lai <ray@cyth.net>.
23 displays two files side by side,
24 with any differences between the two highlighted as follows:
25 new lines are marked with
27 deleted lines are marked with
29 and changed lines are marked with
33 can also be used to interactively merge two files,
34 prompting at each set of differences.
37 option for an explanation.
42 Only print the left column for identical lines.
50 In this mode, the user is prompted for each set of differences.
56 for details of which editor, if any, is invoked.
58 The commands are as follows:
61 Choose left set of diffs.
63 Choose right set of diffs.
65 Silent mode \(en identical lines are not printed.
67 Verbose mode \(en identical lines are printed.
69 Start editing an empty file, which will be merged into
71 upon exiting the editor.
73 Start editing file with left set of diffs.
75 Start editing file with right set of diffs.
77 Start editing file with both sets of diffs.
87 characters on each line.
88 The default is 130 characters.
102 Ignore trailing blank spaces.
106 Ignore line changes matching
108 All lines in the change must match
110 for the change to be ignored.
112 Do a case-insensitive comparison.
114 Expand tabs to spaces.
124 .It Ev EDITOR , VISUAL
125 Specifies an editor to use with the
143 Specifies a directory for temporary files to be created.
154 was written from scratch for the public domain by
155 .An Ray Lai Aq Mt ray@cyth.net .
157 Although undocumented,
159 supports all options supported by GNU sdiff.
160 Some options require GNU diff.
162 Tabs are treated as anywhere from one to eight characters wide,
163 depending on the current column.
164 Terminals that treat tabs as eight characters wide will look best.
167 may not work with binary data.