home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR13
/
RDUP102.ZIP
/
RDUP.DOC
< prev
next >
Wrap
Text File
|
1993-10-26
|
3KB
|
89 lines
RDUP
Free DOS utility: delete duplicate lines across multiple files
Version 1.02 - October 22, 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 only the *last* would then be saved:
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",
a subdirectory below the current one, 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 Robert Pirko's
RPSORT.COM program, but can easily be modified for other sort programs.
The sort program that comes with MS-DOS is marginally acceptable.
Besides RPSORT, I have tested PDSORT and SORTF. Although SORTF is
small and fast, it doesn't work well with my RDUP program. PDSORT
works better with RDUP than SORTF, and is free, but larger and slower.
RPSORT is the best, and is free. 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.
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.
{------------------------------------------------------------------------------
REVISION HISTORY
v1.00 : 1993/10/07. First public release. DDA
v1.01 : 1993/10/22. Fix: wasn't deleting a temporary file. DDA
Changed RDUPSORT.BAT to comply with RPSORT,
an excellent and fast freeware sorter. DDA
RPSRT102 is on Channel 1, the FHOF BBS, and elsewhere.
v1.02 : 1993/10/26. All dups placed in a report file, "rdup_del.dat". DDA
------------------------------------------------------------------------------}