hi all,
i copy source from
http://www.planet-source-code.com/vb/scripts/ShowCodeAsText.asp?txtCodeId=481&lngWId=6,
the piece source aims to merges 2 or more text files into one more manageable
file. and it also remove the duplicates and comments (start with #).
i run it on the windows 2003 server dos console:
---
C:\Inetpub\wwwroot\cgi-bin\test>perl WorldListMerger.pl
Moth Merger 1.0 Wordlist Merger
Please specify an output file:test7
Please specify an input file:a.txt
5 added to test7
1 duplicates in a.txtAdd another file?(y/n):y
Please specify an input file:b.txt
7 added to test7
2 duplicates in b.txtAdd another file?(y/n):y
Please specify an input file:c.txt
1 added to test7
0 duplicates in c.txtAdd another file?(y/n):n
---
in a.txt:
a
b
c
#comments by joodhawk.
d
a
c
in b.txt
e
e
f
g
h
i
j
g
f
in c.txt
zzzzzzz
it is the incorrect result.
as we excepted, such as in the a.txt, we know 2 duplicates apparently.
how to correct it ?
thanks in advance.