diff.1 (2010 09)

d
diff(1) diff(1)
The following command ignores all blanks and tabs and ignores uppercase-lowercase differences.
diff -wi x1 x2
WARNINGS
Editing scripts produced by the -e or
-f option are naive about creating lines consisting of a single dot
(
.).
When comparing directories with the
-b,
-w,or -i options specified, diff first compares the files in
the same manner as
cmp, then runs the
diff algorithm if they are not equal. This may cause a small
amount of spurious output if the files are identical except for insignificant blank strings or
uppercase/lowercase differences.
The default algorithm requires memory allocation of roughly six times the size of the file. If sufficient
memory is not available for handling large files, the
-h option or bdiff can be used (see bdiff(1)).
With other options if sufficient memory is not available, then either the
swap or maxdsiz values can be
increased.
When run on directories with the
-r option,
diff recursively descends sub-trees. When comparing
deep multi-level directories, more memory may be required than is currently available on the system.
The amount of memory required depends on the depth of recursion and the size of the files.
AUTHOR
diff was developed by AT&T, the University of California, Berkeley, and HP.
FILES
/usr/lbin/diffh used by
-h option
SEE ALSO
bdiff(1), cmp(1), comm(1), diff3(1), diffmk(1), dircmp(1), ed(1), more(1), nroff(1), rcsdiff(1), sccsdiff(1),
sdiff(1), terminfo(4).
STANDARDS CONFORMANCE
diff: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3