dcmp - compare or merge two directory trees
dcmp [-n] {-x|-X} dir1 dir2
dcmp compares two directories trees and optionally merges data from the first into the second.
No action. Report the actions which would normally have taken place.
Remove files in dir1 which have identical counterparts in dir2.
Remove files in dir1 which have identical counterparts in dir2. Files in dir1 which do not exist in dir2 are moved to appropriate positions in dir2. Dir1 is then purged of empty directories. This option implies the -x option.
There is no check that dir1 and dir2 refer to different directories. If they refer to the same directory then the whole directory will be emptied.
diff(1), rsync(1), cmp(1)
Cameron Simpson <cs@zip.com.au> February 1988