Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
sdiff(1)
Edit
PageHistory
Diff
Info
LikePages
SDIFF !!!SDIFF NAME SYNOPSIS DESCRIPTION SEE ALSO DIAGNOSTICS ---- !!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 outputs the results to ''outfile''. If ''from-file'' is a directory and ''to-file'' is not, ''sdiff'' compares 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 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. __-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-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__ __--version__ Output the version number of ''sdiff''. __-w__ ''columns'' __--width=__''columns'' Use an output width of ''columns''. Note that for historical 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. ----
3 pages link to
sdiff(1)
:
diff(1)
diff3(1)
Man1s
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.