6.0;cmt (compare_tree), revision 6.0, 83/02/19
CMT (COMPARE_TREE) -- Compare source tree to target tree.
usage: CMT source_pathname target_pathname [-L |-LD |-LF] {CL}
FORMAT
CMT source_pathname target_pathname [options]
CMT compares all the objects in the source tree against all objects in
the target tree. CMT reports any objects catalogued in the source that
do not also appear in the target. Objects that appear in the target but
that do not appear in the source, however, are not reported.
ARGUMENTS
Both the source and target pathnames must specify the same type of object,
either a directory or a file. 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 will only report 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.
CMT uses the command line parser, and so also accepts the standard command
options listed in HELP CL.
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. 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)
RELATED TOPICS
More information is available. Type:
- HELP CMF
for details about comparing unsorted files.
- HELP CMSRF
for details about comparing sorted files.