version 1.18, 2003/07/22 01:23:51 |
version 1.19, 2003/07/27 07:39:52 |
|
|
.Nd differential file and directory comparator |
.Nd differential file and directory comparator |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm diff |
.Nm diff |
.Op Fl abilqtTw |
.Op Fl abdilqtTw |
.Oo |
.Oo |
.Fl c | Fl e | Fl f | |
.Fl c | Fl e | Fl f | |
.Fl n | Fl u |
.Fl n | Fl u |
|
|
.Op Fl L Ar label |
.Op Fl L Ar label |
.Ar file1 file2 |
.Ar file1 file2 |
.Nm diff |
.Nm diff |
.Op Fl abilqtTw |
.Op Fl abdilqtTw |
.Op Fl L Ar label |
.Op Fl L Ar label |
.Fl C Ar number |
.Fl C Ar number |
.Ar file1 file2 |
.Ar file1 file2 |
.Nm diff |
.Nm diff |
.Op Fl abilqtw |
.Op Fl abdilqtw |
.Fl D Ar string |
.Fl D Ar string |
.Ar file1 file2 |
.Ar file1 file2 |
.Nm diff |
.Nm diff |
.Op Fl abilqtTw |
.Op Fl abdilqtTw |
.Op Fl L Ar label |
.Op Fl L Ar label |
.Fl U Ar number |
.Fl U Ar number |
.Ar file1 file2 |
.Ar file1 file2 |
.Nm diff |
.Nm diff |
.Op Fl abilNqtTw |
.Op Fl abdilNqtTw |
.Oo |
.Oo |
.Fl c | Fl e | Fl f | |
.Fl c | Fl e | Fl f | |
.Fl n | Fl u |
.Fl n | Fl u |
|
|
Lines which are changed from one file to the other are marked in |
Lines which are changed from one file to the other are marked in |
both files with |
both files with |
.Sq !\ \& . |
.Sq !\ \& . |
Changes which lie within 3 lines of each other are grouped together on output. |
Changes which lie within 3 lines of each other are grouped together on |
|
output. |
|
.It Fl d |
|
Try very hard to produce a diff as small as possible. This may consume a |
|
lot of processing power and memory when processing large files with |
|
many changes. |
.It Fl e |
.It Fl e |
Produces output in a form suitable as input for the editor utility, |
Produces output in a form suitable as input for the editor utility, |
.Xr ed 1 , |
.Xr ed 1 , |