[NEED] Bot to Remove duplicate Lines.

Status
Not open for further replies.

socketul

Newbie
Joined
Jul 7, 2014
Messages
29
Reaction score
5
Hello,

So let's say I have a .txt file with 50k Lines. I need a bot that will search duplicate LINES and remove them.
Lines length are small like:

ht TTp://Dog love cats.com/Lovecats
 
I will save you some time and money
Code:
http://textmechanic.com/Remove-Duplicate-Lines.html
 
get Notepad++ and use the find and replace feature to do this.
 
another solution would be notepad++ with textfx addon, the addon has the function to do this with a click of a button
 
If you want to build your own bot, you can use the free https://www.autoitscript.com/site/autoit/ scripting language and build your exe file, here's something that will get you started:

Code:
#include <Array.au3>
#include <File.au3>
#include <FileConstants.au3>
Local $out, $i, $unique, $arr, $in = "c:\test.txt"


_FileReadToArray($in, $arr)
$unique = _ArrayUnique($arr)
$out = FileOpen("c:\test_unique.txt",$FO_OVERWRITE)


For $i = 0 To UBound($unique) - 1
if ($i >1) Then
 FileWrite($out, $unique[$i] & @CRLF)
EndIf
Next


FileClose($out)
 
If you want to remove duplicate lines from billions or trillions of lines of text file I have created a program for that. If interested I can show you a demo.
 
I have a quick solution for you. Just send me the file.
 
PHP or .bat Script real easy just do the research. No spoon feeding.
 
Open with Excel - go to DATA tab -> Remove duplicate lines. Easy as ABC
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top