This file is indexed.

/usr/share/doc/diffutils-doc/Invoking-sdiff.html is in diffutils-doc 1:3.5-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This manual is for GNU Diffutils
(version 3.5, 4 August 2016),
and documents the GNU diff, diff3,
sdiff, and cmp commands for showing the
differences between files and the GNU patch command for
using their output to update files.

Copyright (C) 1992-1994, 1998, 2001-2002, 2004, 2006, 2009-2016 Free
Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled
"GNU Free Documentation License." -->
<!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Comparing and Merging Files: Invoking sdiff</title>

<meta name="description" content="Comparing and Merging Files: Invoking sdiff">
<meta name="keywords" content="Comparing and Merging Files: Invoking sdiff">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Index.html#Index" rel="index" title="Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html#Top" rel="up" title="Top">
<link href="Standards-conformance.html#Standards-conformance" rel="next" title="Standards conformance">
<link href="Invoking-patch.html#patch-Options" rel="prev" title="patch Options">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<a name="Invoking-sdiff"></a>
<div class="header">
<p>
Next: <a href="Standards-conformance.html#Standards-conformance" accesskey="n" rel="next">Standards conformance</a>, Previous: <a href="Invoking-patch.html#Invoking-patch" accesskey="p" rel="prev">Invoking patch</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Invoking-sdiff-1"></a>
<h2 class="chapter">16 Invoking <code>sdiff</code></h2>
<a name="index-invoking-sdiff"></a>
<a name="index-sdiff-invocation"></a>

<p>The <code>sdiff</code> command merges two files and interactively outputs the
results.  Its arguments are as follows:
</p>
<div class="example">
<pre class="example">sdiff -o <var>outfile</var> <var>options</var>&hellip; <var>from-file</var> <var>to-file</var>
</pre></div>

<p>This merges <var>from-file</var> with <var>to-file</var>, with output to <var>outfile</var>.
If <var>from-file</var> is a directory and <var>to-file</var> is not, <code>sdiff</code>
compares the file in <var>from-file</var> whose file name is that of <var>to-file</var>,
and vice versa.  <var>from-file</var> and <var>to-file</var> may not both be
directories.
</p>
<p><code>sdiff</code> options begin with &lsquo;<samp>-</samp>&rsquo;, so normally <var>from-file</var>
and <var>to-file</var> may not begin with &lsquo;<samp>-</samp>&rsquo;.  However, <samp>--</samp> as an
argument by itself treats the remaining arguments as file names even if
they begin with &lsquo;<samp>-</samp>&rsquo;.  You may not use <samp>-</samp> as an input file.
</p>
<p><code>sdiff</code> without <samp>--output</samp> (<samp>-o</samp>) produces a
side-by-side difference.  This usage is obsolete; use the
<samp>--side-by-side</samp> (<samp>-y</samp>) option of <code>diff</code> instead.
</p>
<p>An exit status of 0 means no differences were found, 1 means some
differences were found, and 2 means trouble.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">&bull; <a href="#sdiff-Options" accesskey="1">sdiff Options</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Summary of options to <code>diff</code>.
</td></tr>
</table>

<hr>
<a name="sdiff-Options"></a>
<div class="header">
<p>
Up: <a href="#Invoking-sdiff" accesskey="u" rel="up">Invoking sdiff</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Options-to-sdiff"></a>
<h3 class="section">16.1 Options to <code>sdiff</code></h3>
<a name="index-sdiff-options"></a>
<a name="index-options-for-sdiff"></a>

<p>Below is a summary of all of the options that <acronym>GNU</acronym>
<code>sdiff</code> accepts.  Each option has two equivalent names, one of
which is a single letter preceded by &lsquo;<samp>-</samp>&rsquo;, and the other of which
is a long name preceded by &lsquo;<samp>--</samp>&rsquo;.  Multiple single letter options
(unless they take an argument) can be combined into a single command
line argument.  Long named options can be abbreviated to any unique
prefix of their name.
</p>
<dl compact="compact">
<dt><samp>-a</samp></dt>
<dt><samp>--text</samp></dt>
<dd><p>Treat all files as text and compare them line-by-line, even if they
do not appear to be text.  See <a href="Comparison.html#Binary">Binary</a>.
</p>
</dd>
<dt><samp>-b</samp></dt>
<dt><samp>--ignore-space-change</samp></dt>
<dd><p>Ignore changes in amount of white space.  See <a href="Comparison.html#White-Space">White Space</a>.
</p>
</dd>
<dt><samp>-B</samp></dt>
<dt><samp>--ignore-blank-lines</samp></dt>
<dd><p>Ignore changes that just insert or delete blank lines.  See <a href="Comparison.html#Blank-Lines">Blank Lines</a>.
</p>
</dd>
<dt><samp>-d</samp></dt>
<dt><samp>--minimal</samp></dt>
<dd><p>Change the algorithm to perhaps find a smaller set of changes.  This
makes <code>sdiff</code> slower (sometimes much slower).  See <a href="diff-Performance.html#diff-Performance">diff Performance</a>.
</p>
</dd>
<dt><samp>--diff-program=<var>program</var></samp></dt>
<dd><p>Use the compatible comparison program <var>program</var> to compare files
instead of <code>diff</code>.
</p>
</dd>
<dt><samp>-E</samp></dt>
<dt><samp>--ignore-tab-expansion</samp></dt>
<dd><p>Ignore changes due to tab expansion.
See <a href="Comparison.html#White-Space">White Space</a>.
</p>
</dd>
<dt><samp>--help</samp></dt>
<dd><p>Output a summary of usage and then exit.
</p>
</dd>
<dt><samp>-i</samp></dt>
<dt><samp>--ignore-case</samp></dt>
<dd><p>Ignore changes in case; consider upper- and lower-case to be the same.
See <a href="Comparison.html#Case-Folding">Case Folding</a>.
</p>
</dd>
<dt><samp>-I <var>regexp</var></samp></dt>
<dt><samp>--ignore-matching-lines=<var>regexp</var></samp></dt>
<dd><p>Ignore changes that just insert or delete lines that match <var>regexp</var>.
See <a href="Comparison.html#Specified-Lines">Specified Lines</a>.
</p>
</dd>
<dt><samp>-l</samp></dt>
<dt><samp>--left-column</samp></dt>
<dd><p>Print only the left column of two common lines.
See <a href="Output-Formats.html#Side-by-Side-Format">Side by Side Format</a>.
</p>
</dd>
<dt><samp>-o <var>file</var></samp></dt>
<dt><samp>--output=<var>file</var></samp></dt>
<dd><p>Put merged output into <var>file</var>.  This option is required for merging.
</p>
</dd>
<dt><samp>-s</samp></dt>
<dt><samp>--suppress-common-lines</samp></dt>
<dd><p>Do not print common lines.  See <a href="Output-Formats.html#Side-by-Side-Format">Side by Side Format</a>.
</p>
</dd>
<dt><samp>--speed-large-files</samp></dt>
<dd><p>Use heuristics to speed handling of large files that have numerous
scattered small changes.  See <a href="diff-Performance.html#diff-Performance">diff Performance</a>.
</p>
</dd>
<dt><samp>--strip-trailing-cr</samp></dt>
<dd><p>Strip any trailing carriage return at the end of an input line.
See <a href="Comparison.html#Binary">Binary</a>.
</p>
</dd>
<dt><samp>-t</samp></dt>
<dt><samp>--expand-tabs</samp></dt>
<dd><p>Expand tabs to spaces in the output, to preserve the alignment of tabs
in the input files.  See <a href="Adjusting-Output.html#Tabs">Tabs</a>.
</p>
</dd>
<dt><samp>--tabsize=<var>columns</var></samp></dt>
<dd><p>Assume that tab stops are set every <var>columns</var> (default 8) print
columns.  See <a href="Adjusting-Output.html#Tabs">Tabs</a>.
</p>
</dd>
<dt><samp>-v</samp></dt>
<dt><samp>--version</samp></dt>
<dd><p>Output version information and then exit.
</p>
</dd>
<dt><samp>-w <var>columns</var></samp></dt>
<dt><samp>--width=<var>columns</var></samp></dt>
<dd><p>Output at most <var>columns</var> (default 130) print columns per line.
See <a href="Output-Formats.html#Side-by-Side-Format">Side by Side Format</a>.  Note that for historical reasons, this
option is <samp>-W</samp> in <code>diff</code>, <samp>-w</samp> in <code>sdiff</code>.
</p>
</dd>
<dt><samp>-W</samp></dt>
<dt><samp>--ignore-all-space</samp></dt>
<dd><p>Ignore white space when comparing lines.  See <a href="Comparison.html#White-Space">White Space</a>.
Note that for historical reasons, this option is <samp>-w</samp> in <code>diff</code>,
<samp>-W</samp> in <code>sdiff</code>.
</p>
</dd>
<dt><samp>-Z</samp></dt>
<dt><samp>--ignore-trailing-space</samp></dt>
<dd><p>Ignore white space at line end.  See <a href="Comparison.html#White-Space">White Space</a>.
</p></dd>
</dl>

<hr>
<div class="header">
<p>
Up: <a href="#Invoking-sdiff" accesskey="u" rel="up">Invoking sdiff</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>