MPE/iX Shell and Utilities Reference Manual, Vol 1

diff(1) MPE/iX Shell and Utilities diff(1)
–C n is equivalent to -cn.
–c[n] shows n lines of context before and after each change. The default value for n is 3.
diff marks lines removed from path1 with , lines added to path2 with + and lines
changed in both files with !.
–Difname
displays output that is the appropriate input to the
C preprocessor to generate the con-
tents of path2 when ifname is defined, and the contents of path1 when ifname is not
defined.
–e writes out a script of commands for the ed text editor, which converts path1 to path2.
diff sends the output to the standard output.
–f writes a script similar to the one produced under –e to the standard output, but does
not adjust the line numbers to reflect earlier editing changes; instead, they correspond
to the line numbers in path1.
–H uses the half-hearted (–h) algorithm only if the normal algorithm runs out of system
resources.
–h uses a fast, half-hearted algorithm instead of the normal diff algorithm. This algo-
rithm can handle arbitrarily large files; however, it is not particularly good at finding
a minimal set of differences in files with many differences.
–i ignores the case of letters when doing the comparison.
–m produces the contents of path2 with extra formatter request lines interspersed to show
which lines were added (those with vertical line characters in the right margin)
and deleted (indicated by a * in the right margin). These are nroff/troff
requests.
–n displays the differences in a form that is usable by
RCS.
–r compares corresponding files under the directories, and recursively compares corre-
sponding files under corresponding subdirectories under the directories. You can use
this option when you specify two directory names on the command line.
–s compares two directories, file by file, and prints messages for identical files between
the two directories.
–t expands tabs into spaces before doing the comparison. diff sets tab stops every
eight columns, for example columns 1, 9, 17.
–w ignores white space when making the comparison.
Commands and Utilities 1-175