Linux "sdiff" Command Line Options and Examples
side-by-side merge of file differences

Side-by-side merge of differences between FILE1 and FILE2. Mandatory arguments to long options are mandatory for short options too.


Usage:

sdiff [OPTION]... FILE1 FILE2






Command Line Options:

-o
operate interactively, sending output to FILE
sdiff -o ...
-i
consider upper- and lower-case to be the same
sdiff -i ...
-E
ignore changes due to tab expansion
sdiff -E ...
-Z
ignore white space at line end
sdiff -Z ...
-b
ignore changes in the amount of white space
sdiff -b ...
-W
ignore all white space
sdiff -W ...
-B
ignore changes whose lines are all blank
sdiff -B ...
-I
ignore changes all whose lines match RE
sdiff -I ...
--strip-trailing-cr
strip trailing carriage return on input
sdiff --strip-trailing-cr ...
-a
treat all files as text
sdiff -a ...
-w
output at most NUM (default 130) print columns
sdiff -w ...
-l
output only the left column of common lines
sdiff -l ...
-s
do not output common lines
sdiff -s ...
-t
expand tabs to spaces in output
sdiff -t ...
--tabsize
tab stops at every NUM (default 8) print columns
sdiff --tabsize ...
-d
try hard to find a smaller set of changes
sdiff -d ...
-H
assume large files, many scattered small changes
sdiff -H ...
--diff-program
use PROGRAM to compare files
sdiff --diff-program ...
--help
display this help and exit
sdiff --help ...
-v
output version information and exitIf a FILE is '-', read standard input. Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.AUTHORWritten by Thomas Lord.REPORTING BUGSReport bugs to: bug-diffutils@gnu.orgGNU diffutils home page: <http://www.gnu.org/software/diffutils/>General help using GNU software: <http://www.gnu.org/gethelp/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent per‐mitted by law.
sdiff -v ...