.TH IDIFF 1 .CT 1 files dirs .SH NAME idiff \(mi interactive file comparison .SH SYNOPSIS .B idiff .I file1 file2 .SH DESCRIPTION .I Idiff compares .I file1 with .I file2 using .IR diff , then presents each set of changed lines for selection or processing. .I File2 may be a directory; in that case, the basename of .I file1 is appended. .PP For each group, legal responses are .TP .B < to retain the `from' lines .TP .B > to retain the `to' lines .TP .B e to edit both sets of lines .TP .B d to delete both sets .TP .B 1 to retain the rest of the `from' file .TP .B 2 to retain the rest of the `to' file .TP .B ! to invoke a shell command .PP Lines common to each file are copied verbatim. Lines produced by this process, including the lines written from within the editor, are written to file .IR idiff.out . .SH FILES .TF /tmp/idiff.* .TP .F idiff.out .TP .F idiff.* .TP .F /tmp/idiff.* .SH SEE ALSO .IR diff (1) .SH BUGS There is no way to revisit a choice.