Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
NetBSD
Solaris
Others
SDIFF(1) GNU Tools SDIFF(1)
NAME
sdiff - find differences between two files and merge
interactively
SYNOPSIS
sdiff -o outfile [options] from-file to-file
DESCRIPTION
The sdiff command merges two files and interactively out-
puts the results to outfile.
If from-file is a directory and to-file is not, sdiff com-
pares the file in from-file whose file name is that of to-
file, and vice versa. from-file and to-file may not both
be directories.
sdiff options begin with -, so normally from-file and to-
file may not begin with -. However, -- as an argument by
itself treats the remaining arguments as file names even
if they begin with -. You may not use - as an input file.
sdiff without -o (or --output) produces a side-by-side
difference. This usage is obsolete; use diff
--side-by-side instead.
Options
Below is a summary of all of the options that GNU sdiff
accepts. Each option has two equivalent names, one of
which is a single letter preceded by -, and the other of
which is a long name preceded by --. Multiple single let-
ter 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.
-a Treat all files as text and compare them line-by-
line, even if they do not appear to be text.
-b Ignore changes in amount of white space.
-B Ignore changes that just insert or delete blank
lines.
-d Change the algorithm to perhaps find a smaller set
of changes. This makes sdiff slower (sometimes
much slower).
-H Use heuristics to speed handling of large files
that have numerous scattered small changes.
--expand-tabs
Expand tabs to spaces in the output, to preserve
the alignment of tabs in the input files.
-i Ignore changes in case; consider upper- and lower-
GNU Tools 22sep1993 1
SDIFF(1) GNU Tools SDIFF(1)
case to be the same.
-I regexp
Ignore changes that just insert or delete lines
that match regexp.
--ignore-all-space
Ignore white space when comparing lines.
--ignore-blank-lines
Ignore changes that just insert or delete blank
lines.
--ignore-case
Ignore changes in case; consider upper- and lower-
case to be the same.
--ignore-matching-lines=regexp
Ignore changes that just insert or delete lines
that match regexp.
--ignore-space-change
Ignore changes in amount of white space.
-l
--left-column
Print only the left column of two common lines.
--minimal
Change the algorithm to perhaps find a smaller set
of changes. This makes sdiff slower (sometimes
much slower).
-o file
--output=file
Put merged output into file. This option is
required for merging.
-s
--suppress-common-lines
Do not print common lines.
--speed-large-files
Use heuristics to speed handling of large files
that have numerous scattered small changes.
-t Expand tabs to spaces in the output, to preserve
the alignment of tabs in the input files.
--text Treat all files as text and compare them line-by-
line, even if they do not appear to be text.
-v
GNU Tools 22sep1993 2
SDIFF(1) GNU Tools SDIFF(1)
--version
Output the version number of sdiff.
-w columns
--width=columns
Use an output width of columns. Note that for his-
torical reasons, this option is -W in diff, -w in
sdiff.
-W Ignore horizontal white space when comparing lines.
Note that for historical reasons, this option is -w
in diff, -W in sdiff.
SEE ALSO
cmp(1), comm(1), diff(1), diff3(1).
DIAGNOSTICS
An exit status of 0 means no differences were found, 1
means some differences were found, and 2 means trouble.
GNU Tools 22sep1993 3
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
GNU Sources for sdiff(1) (at FreeBSD cvsweb) GNU sources for sdiff(1) (at OpenBSD cvsweb)
Up to: File filtering and processing - Methods of filtering and processing files. (character translation, comparison, search, sort, word counts, etc.)
Up to: File and Version Management - RCS, CVS, distribution, etc.
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
NetBSD
Solaris
Others
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware >
sdiff.1/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|