dircmp - Compares two directories
dircmp [-d] [-s] directory1 directory2
directory2, compares their contents,
and writes the results to standard output.
Interfaces documented on this reference page conform to industry standards as follows:
dircmp: XPG4, XPG4-UNIX
Refer to the
reference page for more information
about industry standards and associated tags.
Displays for each common file name the differing contents
of the two files, if any. The display format is the same as that of the
Does not list the names of identical files.
The path name of a directory to be compared.
First, dircmp compares the file names in each directory. When the same file name appears in both, dircmp compares the contents of the two files.
In the output,
lists the files unique to each
directory. It then lists the files with identical names but different contents.
If entered without a option,
also lists files that
have both identical names and identical contents.
[Compaq] In many cases,
-r, rather than
dircmp, is preferred.
command is marked to be withdrawn
from the XPG4-UNIX standard. The
command should be used instead.
To summarize the differences between the files in two directories, enter: dircmp proj.ver1 proj.ver2
Commands: cmp(1), diff(1)