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

util/cli/fcmp.lha

Mirror:Random
Showing: i386-amithlon icongeneric icon
No screenshot available
Short:Quick, non-diff binary file compare
Uploader:
Type:util/cli
Architecture:m68k-amigaos
Date:1992-09-02
Download:util/cli/fcmp.lha - View contents
Readme:util/cli/fcmp.readme
Downloads:596

Fcmp compares two binary (or ascii) files to the limit of the shorter.
Output can be controlled on the command line; by default, fcmp tells
you the file byte in which the difference occurred, the block number
(relative to 1), and the block's byte offset (relative to 0).  The
latter two are for patching with NewZAP.  Further options will print
hex codes for the differing bytes, and/or print the character itself
(not useful on binary files).

Options:
-v:	Print hex codes
-b:	Don't print NewZAP info
-q:	Print only the totals for the scan; no diffs
-qq:	Never print; return non-zero if different
-a:	Print characters that differ


Why?  An example: I had a program whose menu keyboard equivalents were
lacking; one commonly-used function had no equivalent.  I NewZAPped
the program to locate the MenuItem structure for that menu item, and
modified it to carry a keyboard equiv. that I liked.  Later, I got a
binary patchfile for the program.  If I had patched it, I could have
lost the mod I made.  So I fcmp'ed the file and its original to locate
the changes I had made, recorded context information, patched the
program, and NewZAPped the new file to locate the context and replace
my modification.  There are other uses.  Keep it and you'll think of
one.


Fcmp is totally free.  I, the author, release it to the public domain,
along with any liability for damages incurred through its use or
misuse.

01-Sep-92
David Champion


Contents of util/cli/fcmp.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 5643    9352  60.3% -lh5- 5cf3 Aug 31  1992 fcmp
[generic]                 1972    5036  39.2% -lh5- 208e Aug 31  1992 fcmp.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    7615   14388  52.9%            Sep  1  1992
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>