plan9port/man/man1/idiff.1

74 lines
913 B
Groff
Raw Normal View History

2004-04-10 18:53:55 +00:00
.TH IDIFF 1
.SH NAME
idiff \- interactive diff
.SH SYNOPSIS
.B idiff
[
.B -bw
]
.I file1
.I file2
.SH DESCRIPTION
.I Idiff
interactively
merges
.I file1
and
2005-01-13 04:49:19 +00:00
.I file2
onto standard output.
2004-04-10 18:53:55 +00:00
Wherever
.I file1
and
.I file2
differ,
.I idiff
displays the differences in the style of
.RB `` diff
2005-01-13 04:49:19 +00:00
.BR -n ''
on standard error
2004-04-10 18:53:55 +00:00
and prompts the user to select a chunk.
Valid responses are:
.TP
.B <
Use the chunk from
.IR file1 .
.TP
.B >
Use the chunk from
.IR file2 .
.TP
.B =
Use the diff output itself.
.TP
.BR q< ", " q> ", " q=
Use the given response for all future questions.
.TP
.BI ! cmd
Execute
.I cmd
and prompt again.
.PP
.I Idiff
invokes
.IR diff (1)
to compare the files.
The
.B -b
and
.B -w
2005-01-13 04:49:19 +00:00
flags,
if passed,
are
passed to
2004-04-10 18:53:55 +00:00
.IR diff .
.SH FILES
.B /tmp/idiff.*
.SH SOURCE
2005-01-11 17:37:33 +00:00
.B \*9/src/cmd/idiff.c
2004-04-10 18:53:55 +00:00
.SH "SEE ALSO
.IR diff (1)
.br
Kernighan and Pike,
.IR "The Unix Programming Environment" ,
Prentice-Hall, 1984.