DIFF(1) GNU DIFF(1)
[] from- to-
diff
, from-
to-.
- , .
diff - -
.
from- --
, to- -- , diff
from-/to-
to-file.
, from- --
, to- -- , , -.
from-,
to- -- , diff
, ;
, -r
--recursive . diff
, .
,
`` ''
.
diff
-,
from-
to-
-. , -- ,
, -.
, GNU
diff .
: ,
-,
, --.
, ,
: -ac
-a -c.
, , ([
]) , .
-_ _
, -c
-u.
. , patch
.
-a ,
.
-b , . .
-B ,
--brief
, -
-c .
-C _
--context[=_]
, , , .
patch
.
--changed-group-format=
,
--.
-d .
diff
( ).
-D , --, #define
-e
--ed ed.
--exclude=
,
.
--exclude-from=
,
, .
--expand-tabs
.
-f ed,
,
.
-F _ , ,
, ,
_.
--forward-ed
ed,
,
.
-h ;
Unix.
-H ,
, .
--horizon-lines=lines
lines
lines
.
-i ;
( ) .
-I _ , , _.
--ifdef=
, --, #define
--ignore-all-space
, . .
--ignore-blank-lines
,
--ignore-case
;
( ) .
--ignore-matching-lines=_
, ,
_.
--ignore-space-change
, . .
--initial-tab
.
.
-l pr
.
-L
--label=
.
--left-column
( )
.
--line-format=
--.
--minimal
.
diff
( ).
-n RCS-diff; -f
,
-N
--new-file
, ,
, ,
--new-group-format=
,
--.
--new-line-format=
,
--.
--old-group-format=format
,
--.
--old-line-format=format
,
--.
-p , C .
-P , , , , .
--paginate
pr
.
-q , -
-r
.
--rcs RCS-diff; -f
,
--recursive
.
--report-identical-files
-s , .
-S .
.
--sdiff-merge-assist
, sdiff. sdiff
, diff.
.
--show-c-function
, C .
--show-function-line=_
, , ,
, _.
--side-by-side
.
--speed-large-files
,
, .
--starting-file=file
.
.
--suppress-common-lines
.
-t .
-T
.
.
--text , , .
-u .
--unchanged-group-format=
,
--.
--unchanged-line-format=
( ) --.
--unidirectional-new-file
, , , , .
-U lines
--unified[=_]
, _
, .
patch
.
-v
--version
diff.
-w .
-W
--width=
.
-x ,
.
-X , ,
, .
-y .
cmp(1), comm(1), diff3(1), ed(1), patch(1), pr(1), sdiff(1).
0, , 1,
2, .
<corochoone [AT] perm.ru> 2003
GNU 1993-09-22 DIFF(1)