Contents|Index|Previous|Next

diff Output Formats

diff has several mutually exclusive options for output format. The following sections describe each format, illustrating how diff reports the differences between two sample input files.

For more discussion, see the following documentation.

- Two Sample Input Files
- Showing Differences Without Context
- Showing Differences in Their Context
- Showing Differences Side by Side
- Controlling Side by Side Format
- Merging Files with If-then-else