home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d188
/
diffdir.lha
/
DiffDir
/
DiffDir.DOC
< prev
next >
Wrap
Text File
|
1989-02-26
|
2KB
|
62 lines
Program:
DiffDir - List directory differences.
(C)Copyright 1988 by Mark R. Rinfret
All Rights Reserved.
This software may be freely distributed for non-profit use only.
You are free to make changes and redistribute this program as
long as the source is distributed and this notice is kept intact.
Version:
1.0 -01/05/89- Initial release.
Author:
Mark R. Rinfret
348 Indian Ave.
Portsmouth, RI 02871
401-846-7639
Usage:
DiffDir [>listpath] [-c] [-s scriptfile] dirname1 dirname2
where
>listpath redirects standard output to a file or device
-c ignores filename letter case differences (abc = ABC)
-s generates a script file for batch file comparisons
Description:
DiffDir compares the contents of two directories, outputting a
list of differences to standard output. The following conditions
will generate diagnostic output:
1. File or directory present in one hierarchy but not the other
2. File modification dates differ
3. File flags (protection, archive, script, etc.) differ
4. File comments differ
5. File sizes differ
The -c option will allow DiffDir to ignore filename differences which
involve different letter case (abc vs. ABC). The -s option will cause
a line of the form
%COMPARE% path1 path2
to be output to a special script file each time files with similar
names are found to have different sizes. At this time, it is up to
the user to edit the script file, substituting the appropriate
command name for the %COMPARE% meta-string. For instance, "diff -h"
might be substituted for text file comparisons, "cmp" for binary
files. A smarter version of this program would more than likely
do the file content differentiation and apply the correct command
(defined by default, environment variable or command line parameter)
to the output string. Any takers?
I wrote DiffDir out of my own need after repeatedly going through the
drill of listing directories stored on my hard disk and floppy disk
archives of the same directory to determine which was more current.
Hopefully this program will save someone else the aggravation.
Mark Rinfret