Copyright 1989 AT&T Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
sdiff [-l] [-s] [-o output] [-w n] filename1 filename2
Print only the left side of any lines that are identical.
Do not print identical lines.
Use the argument output as the name of a third file that is created as a user-controlled merge of filename1 and filename2. Identical lines of filename1 and filename2 are copied to output. Sets of differences, as produced by diff, are printed; where a set of differences share a common gutter character. After printing each set of differences, sdiff prompts the user with a % and waits for one of the following user-typed commands: l
Append the left column to the output file.
Append the right column to the output file.
Turn on silent mode; do not print identical lines.
Turn off silent mode.
Call the editor with the left column.
Call the editor with the right column.
Call the editor with the concatenation of left and right.
Call the editor with a zero length file.
Exit from the program.
Use the argument n as the width of the output line. The default line length is 130 characters.
A sample output of sdiff follows.
x | y a a b < c < d d > c
Determines how sdiff handles characters. When LC_CTYPE is set to a valid value, sdiff can display and handle text and filenames containing valid characters for that locale.
ATTRIBUTE TYPE ATTRIBUTE VALUE |
CSI Enabled |