home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR4
/
RDUP100.ZIP
/
RDUP.DOC
< prev
next >
Wrap
Text File
|
1993-10-07
|
3KB
|
73 lines
RDUP
Free DOS utility: delete duplicate lines across multiple files
Version 1.00 - October 07, 1993
(c) 1993
by
David Daniel Anderson
Reign Ware
RDUP deletes duplicate lines across multiple files. RDUP requires an
external sorting program, which is not supplied. See details below.
Usage: RDUP file_spec [/i (=case Insensitive)]
RDUP takes one or two parameters on the command line. The first is
mandatory. It is the file or files that you wish to process. Only
one specification may appear, but it may contain wildcards (* and ?).
Example: RDUP *.tag
The above would process all files in the current directory with an
extension of ".tag".
Example: RDUP *.tag /i
Same as the first, except the following two lines would be considered
identical, and the *second* would thus be removed:
Pleasant thoughts lead to nasty deeds.
PLEASANT THOUGHTS LEAD TO NASTY DEEDS.
The original files are not touched. New files will be in "rdup#dir",
and will have the exact same names as the originals.
Throughout the entire process, RDUP informs the user of the actions
which it is taking.
*** Technical Information ***
RDUP first creates a subdirectory called "rdup#dir", and copies all
the specified files into a master file called "rdup#fil", in the newly
created directory.
Then, RDUP does its work. Most of what it does is internal, but twice
RDUP shells out to run a sorting program, which you must provide. It
runs a batch file (or alias) called "RDUPSORT", which in turn runs the
user specified sort program.
An example batch file is provided. RDUPSORT.BAT call's Vern Buerg's
SORTF.COM program, but can easily be modified for other sort programs.
The sort program that comes with MS-DOS is marginally acceptable.
PDSORT works better with RDUP than SORTF, and is free, but larger and
slower. I haven't tested others.
I left the choice up to the user because I cannot write one that is as
good as any of these three.
Since the original files are left untouched, the new ones are placed
in the "rdup#dir" directory. They have the same names as the originals.
After examining the new ones to confirm that they are fine, the
originals can be replaced, and the temporary directory removed.