10.0;cmt (compare_tree), revision 1.0, 88/01/21
cmt (compare_tree) -- Compare source tree to target tree.
usage: cmt source_pathname target_pathname [-l |-ld |-lf] {CL}
DESCRIPTION
cmt compares all the objects in the source tree against all objects in
the target tree. cmt reports any objects cataloged in the source that do
not also appear in the target. If the target contains objects that do
not appear in the source, however, the differences are ignored.
cmt compares objects based on their internal representation, unlike cmf
(compare_file), which treats its input data as ASCII text streams and
compares them as such.
Both the source and target pathnames must specify the same type of
object, either a directory or a file. However, cmt, can compare objects
of any type, unlike cmf, which compares only text files.
If cmt encounters differences, it reports that the objects are different
and continues the comparison with the next object.
ARGUMENTS
Use of wildcards in pathnames is permitted. Multiple source/target pairs
are permitted.
source_pathname (required)
Specify source tree.
target_pathname (required)
Specify target tree. Name may be derived from
source_pathname.
OPTIONS
If no options are specified, cmt reports only the names of directories
and files with differences in source and target trees.
-l List all directories and files compared.
-ld List all directories compared.
-lf List all files compared.
-ae Abort on the first mismatch, or if the source tree contains a
name not found in the target tree. By default, the comparison
continues after the mismatch is reported.
EXAMPLES
Assume that the directories dir1 and dir2 each contain three files called
a, b, and c and that the contents of the b files differ. The following is
the result of a comparison of those two directories.
$ cmt dir1 dir2
*** compare failed at file loc 0 SRC: 10002 DST: 100011
dir1/b - compare failed (from US / file utility)
SEE ALSO
More information is available. Type
help cmf For details about comparing unsorted files
help cmsrf For details about comparing sorted file