how the hell do to that? remove duplicates .txt

The Blackhat Guy

Elite Member
Joined
Oct 15, 2014
Messages
2,096
Reaction score
936
Notepad++ crash as hell.
I have a 26m lines .txt (476mb). I want to remove duplicates only, how can I do that? :(
 
Select all - TextFX- TextFX Tools - Sort lines case sensitive or insensitive

TextFX is a plugin for notepad++. If you don`t have it, you'll need to download it.

Hope this helps
 
Select all - TextFX- TextFX Tools - Sort lines case sensitive or insensitive

TextFX is a plugin for notepad++. If you don`t have it, you'll need to download it.

Hope this helps

Dude, I just said that notepadd crash on such a large file :(
 
Select de first million, remove duplicates from that one, than the next...and eventually files will get smaller.
And then combine them step by step. Needs some work but can be done. I made this way huge files
 
Go the programming way
Search google for python script to remove duplicate lines it will be job done in a couple of minutes
of course you will have to install python.
 
Try Editplus. It does work well for me in the past. Just make sure you use 64-bit version as 32-bit applications have a memory limit of 2GB.
 
Last edited:
try this php script, don't know if it will work for such a large file...
<?php
$array = file("yourfile.txt");
$array = array_unique($array);
file_put_contents('yourfileunique.txt', implode($array));
?>
 
Try Editplus. It does work well for me in the past. Just make sure you use 64-bit version as 32-bit applications have a memory limit of 2GB.

Just downloaded editplus, what a shit...
 
Split the file into smaller lists, remove the duplicates from each of the smaller lists, then combine the lists and dedupe the main list...
 
Split the file into smaller lists, remove the duplicates from each of the smaller lists, then combine the lists and dedupe the main list...

from 26m only 3-4m are duplicates. it would't work
 
On a Linux console:

cd to the folder that has the file

Code:
sort filename | uniq

replace "filename" with the actual filename
 
Scrapebox has a free tool http://www.scrapebox.com/free-dupe-remove
 
Back
Top