Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

11.2. sdiff

		
usage: sdiff [-abdilstW] [-I regexp] [-o outfile] [-w width] file1 file2

-l, --left-column: only print the left column for identical lines.
-o OUTFILE, --output=OUTFILE: interactively merge file1 and file2 into outfile.
-s, --suppress-common-lines: skip identical lines.
-w WIDTH, --width=WIDTH: print a maximum of WIDTH characters on each line.

Options passed to diff(1) are:
	-a, --text: treat file1 and file2 as text files.
	-b, --ignore-trailing-cr: ignore trailing blank spaces.
	-d, --minimal: minimize diff size.
	-I RE, --ignore-matching-lines=RE: ignore changes whose line matches RE.
	-i, --ignore-case: do a case-insensitive comparison.
	-t, --expand-tabs: sxpand tabs to spaces.
	-W, --ignore-all-spaces: ignore all spaces.
	--speed-large-files: assume large file with scattered changes.
	--strip-trailing-cr: strip trailing carriage return.
	--ignore-file-name-case: ignore case of file names.
	--no-ignore-file-name-case: do not ignore file name case
	--tabsize NUM: change size of tabs (default 8.)
	--diff-program=PROGRAM: Use PROGRAM to compare files.