Short: Compares directories Author: Thomas.Radtke@rz.uni-osnabrueck.de Uploader: Thomas.Radtke@rz.uni-osnabrueck.de Type: util/shell dircmp2 is a non-standart implementation of the dircmp command. It is not able to produce diff-style output (otherwise I'd rather call it dirdiff ;). dircmp2 is written for a UN*X box, therefore you will need an up-to-date ixemul library (currently 41.4). Sample session: $dircmp2 -h usage: dircmp2 [-{cdfhiprt}] directory1 [directory2] The dircmp2 command lists all files and directories of directory1, that cannot be found in directory2. If directory2 is omitted, '.' is used Flags: -c compare files -d show only directorys -f show only files -h this page -i inverse comparison -p show full pathnames -r subdir scan -t indent subdir results $ Implementation note: The source was compiled with gcc 2.7.0 (Aminet version)under AmigaOS3.0 and IBM AIX 3.2. The only known problem occured with KingCON version 1.3 (Amiga). Please use the dircmp2 command only with the original CON handler. Since the dircmp2 command may use a recursive algorithm, the stack consumption depends on the number of subdirectories to scan. A scan of my hard drive (dircmp2 -r /hd1 /hd1) does not succeed the standard stacksize of 4K. The memory consumption depends mainly (with -c flag) on the size of the biggest files to compare (files are red in whole). If you ran out of memory, the concerning file will not be compared and you get a warning message to stderr. This behaviour is subject of change in future versions. Most buffers will be flushed after usage. This software is covered by the GPL. See COPYING for details. Thomas ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 7096 3750 47.1% 03-Nov-95 20:58:12 +dircmp2 17982 6993 61.1% 04-Nov-95 17:52:32 COPYING 2439 1018 58.2% 03-Nov-95 20:09:30 dircmp2.doc 1667 901 45.9% 04-Nov-95 17:47:48 dircmp2.readme 6465 1924 70.2% 04-Nov-95 17:57:44 +dircmp2.c -------- ------- ----- --------- -------- 35649 14586 59.0% 05-Nov-95 12:48:22 5 files