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

util/shell/Compare10.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Shell tool for comparing files
Author:ben at bmatthew.demon.co.uk (Ben Matthew)
Uploader:ben bmatthew demon co uk (Ben Matthew)
Type:util/shell
Architecture:m68k-amigaos
Date:1997-02-01
Download:http://aminet.net/util/shell/Compare10.lha - View contents
Readme:http://aminet.net/util/shell/Compare10.readme
Downloads:4472

Compare 1.0

A simple shell program that compares the contents of two files reporting
whether they are the same or not.

The advantage of this program over other such programs is that it reports
back the error codes, as follows:

OK - The files are the same
WARN - The files are not the same
ERROR - Could not load the files
FATAL - Memory failure

Therefore simply scripts can be formulated, i.e.:

.key f1,f2

compare <f1> <f2> QUIET
if warn
	echo "Files are not the same"
	; do stuff
else
	echo "Files are the same
	; do other stuff
endif


Arguments are straigtforward enough:

	compare {first file} {second file} [QUIET]

2 args are compulsory, the third (quiet), can be excluded.  Quiet allows
the program to operate on a purely script basis whilst omitting this
will cause Compare to report on various things.

Source included.  This program is hereby released into the public domain
- no warranties or guarantees are held with this program you may do with
it, the source and any accompanying files what you will.

If you need a specific feature mail me at:
	ben at bmatthew.demon.co.uk


Adios


Contents of util/shell/Compare10.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 7221   11472  62.9% -lh5- 294a Jan 31  1997 compare
[generic]                  773    1896  40.8% -lh5- d055 Jan 31  1997 compare.c
[generic]                  668    1252  53.4% -lh5- 0795 Jan 31  1997 compare.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files    8662   14620  59.2%            Feb  1  1997

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>