sdiff - find differences between two files and merge interactively
sdiff [ options ] from-file to-file
command merges two files and interactively outputs the results.
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 without --output produces a side-by-side difference. This usage is obsolete; use diff --side-by-side
- -o, --output=file
Output interactively, sending output to file. This option is required for
- -a, --text|ascii
Treat all files as text and compare them line-by-line, even if they do not appear to be text.
- -i, --ignore-case
Consider upper- and lower-case to be the same.
- -W, --ignore-all-space
Ignore all white space. For historical reasons this option is -w in
- -b, --ignore-space-change
Ignore changes in the amount of white space.
- -B, --ignore-blank-lines
Ignore changes whose lines are all blank.
- -I, --ignore-matching-lines=pattern
Ignore changes whose lines all match the regular expression pattern
- -w, --width=columns
Output at most columns 130) characters per line. For historical reasons this
option is -w in diff(1). The default value is 130.
- -l, --left-column
Output only the left column of common lines.
- -s, --suppress-common-lines
Do not output common lines.
- -t, --expand-tabs
Expand tabs to spaces in output.
- -d, --minimal
Try hard to find a smaller set of changes.
- -H, --speed-large-files
Assume large files and many scattered small changes.
- Print the program version and exit.
- No differences were found.
- Some differences were found.
- An error occurred.