remove ALL duplicates (2x) on big files?

The Blackhat Guy

Elite Member
Joined
Oct 15, 2014
Messages
2,096
Reaction score
936
Are many tools for duplicating remove, what I need is:

Let's say I have a big list (3m users).
First lines
A
B
C
C
D

I don't want to delete only "C", I want to delete 2xC, the final result to be something like:
A
B
D

Any website/tool for this, please?
 
Notepad++ use its find and replace feature to do it. Put the "C" in the "find" box and leave the replace box emtry and you're done.
 
Notepad++ use its find and replace feature to do it. Put the "C" in the "find" box and leave the replace box emtry and you're done.
Dude...I said "3m lines", not only ABCD
And no, I dont know which line is duplicate.

And no, I won't take any line 1 by 1, to ctrl+f and replace. It would take me like 10 years
 
Dude...I said "3m lines", not only ABCD
And no, I dont know which line is duplicate.

And no, I won't take any line 1 by 1, to ctrl+f and replace. It would take me like 10 years

Yeah, it'll remove all 3 millions, try it, its notepad++ not notepad.
 
Yeah, it'll remove all 3 millions, try it, its notepad++ not notepad.

Man, you don't understand.
I dont know which is "C" on this 3m list. I don't know what to search on "find" box.
I need a tool to IDENTIFY ALL duplicates and remove them.
 
Grab TextFX Plugin for Notepad++.
Sort by Ascending/descending order.
Pull out a regex to remove duplicate lines that are separated by at least one line.
 
Look up TextPipe. It is a pretty good program for working with files. Saved my ass a bunch of times...
 
Brad is right, Notepad++ will do this work just fine. It supports regex expressions.
 
In Notepad++

Go to edit -> line operations -> sort ascending

Hit Ctrl + H for find and replace

Top box put this: ^(.*)(\r?\n\1)+$

Second box put nothing

Check regular expression (bottom left)

Find and replace all

Then: edit -> line operations -> remove empty lines

That's it!
 
Last edited:
Back
Top