UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: diffChapter 2
Unix Commands
Next: Reference: diffmk
 

diff3

diff3 [options] file1 file2 file3

Compare three files and report the differences with the following codes:

====

All three files differ.

====1

file1 is different.

====2

file2 is different.

====3

file3 is different.

Options

-e

Create an ed script to incorporate into file1 all differences between file2 and file3.

-E

Same as -e, but mark with angle brackets any lines that differ between all three files.

-x

Create an ed script to incorporate into file1 all differences between all three files.

-X

Same as -x, but mark with angle brackets any lines that differ between all three files.

-3

Create an ed script to incorporate into file1 differences between file1 and file3.


Previous: Reference: diffUNIX in a Nutshell: System V EditionNext: Reference: diffmk
Reference: diffBook IndexReference: diffmk

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System