AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/FileComp.lha

Mirror:Random
Showing: i386-aros icongeneric icon
No screenshot available
Short:CLI tool for comparing files.
Author: deniil at algonet.se
Uploader:Daniel Westerberg (deniil algonet se)
Type:util/cli
Version:1.0
Architecture:m68k-amigaos
Date:2003-05-25
Download:util/cli/FileComp.lha - View contents
Readme:util/cli/FileComp.readme
Downloads:662

This tool use used to compare two files.
I wrote it because I had some harddisk trouble which involved
corrupted files and the only way to detect if a file was corrupt
was to compare the entire file with a file from my backup.

FileComp compares the file's date, comment, protections bits,
size and, if the size is equal the file contents is compared.

It is excellent for comparing many files at the same time by
putting them in a script as the output is always just one line
which makes it quite easy to see the differences in the output.


The compare routine are very fast and written in assembly.
The core looks like this:

MOVE.L #16383,D0 ;uses 64k buffers
loop:
 CMPM.L (A0)+,(A1)+
DBNE D0,loop

--
Other programs by Deniil 715! can be found on OnyxSoft homepage at:

 http://www.onyxsoft.nu/

Feel free to mail me if you found bugs or have suggestions!


Contents of util/cli/FileComp.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 1846    3328  55.5% -lh5- df6f May 15  2003 FileComp
[generic]                 1630    3653  44.6% -lh5- 46a9 May 15  2003 FileComp.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    3476    6981  49.8%            May 25  2003
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>