ListCmp - © 1996 By Pasi Ristioja With this little utility you can compare filelists, handy if you keep track of downloadings and want to check them against some filelist. If you try to compare binary files results are unpredictable. Some statistic how buffer size affects speed: 01:30 - new (buffer 262144) 01:30 - new (buffer 131072) 01:37 - new (buffer 65536) 01:43 - new (buffer 32768) 01:50 - new (buffer 16384) 02:09 - new default (buffer 8192) 02:58 - new (buffer 4096) 03:52 - new (buffer 2048) 06:04 - new (buffer 1024) 07:29 - new (buffer 512) 05:33 - old default (buffer 16384) as you see old was much slower :) Test was done using comparing six small (20kb-500kb) list against one large bbslist (1.2Mb), both I and E result files were written to same device and STRIP & EQU options were used. Results and practise shows that main factor is your hd speed. Requires: OS3.0, 68020 and asyncio.library > INSERT STANDARD DISCLAIMER < ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FILE/A Cmp filelist. FILE/A Filelist to compare against. These are optional: I=INCLUDE/K Write matched lines to this file. E=EXCLUDE/K Write unmatched lines to this file. B=BUFSIZE/N/K Internal buffersize used for various purposes, default is 8192 and range is 256-2^32. If longer line than buffersize is encountered listcmp will abort with errorcode 20. STRIP=STRIPSUFFIX/S Suffix is not compared. Normally line is considired equal if space or $a (linefeed) in encountered, this adds dot (.) for this group. CASE/S Case sensitive compare. EQU/S Chars _ and - are considered equivalent. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Normally you should use command like this: ListCmp files.cmp files.bbs I RAM:Include E RAM:Exclude STRIP EQU files.cmp - files what you have files.bbs - files what bbs has I RAM:Include - files which were found in both list files E RAM:Exclude - files which were only in files.bbs (download these;-) STRIP - Claudia.gif and Claudia.jpg are equal EQU - Crawford_Nude.gif and Crawford-Nude.gif are equal Filelists must be formatted like this: filename description filename description filename description If you use STRIP option then it has no meaning what is after dot mark, otherwise there must be space or $a (linefeed) after filename. Note that possible spaces before filename are skipped! In practise just use STRIP/EQU options and all normal filelists will work ok.