have any tool for compare and remove duplicate email in many text file ?

chaiya555

Newbie
Joined
May 28, 2018
Messages
3
Reaction score
0
have any tool for compare and remove duplicate email in many text file ?

see example imgur.com/3YEPsVx

thank you very very much for help me. god bless you .
 
Hey Dude,

Use this python script to do your job. It's pretty easy !

Code:
import os

currentDirectory = os.getcwd()
textFiles = []
for f in os.listdir(currentDirectory):
    if (f.endswith('.txt') or f.endswith('.TXT')) and (f != 'output.txt'):
        textFiles.append(f)

d = {}
for tf in textFiles:
    cf = open(tf, "r")
    for line in cf:
        line = line.strip('\n') + '\n'
        d[line] = 0
    cf.close()

wf = open("output.txt", "w")
wf.writelines(d)
 
Yeah, notepad. Use find and replace. Plus there are many online text tools to do the same.
 
Use cat (linux) or type. (windows) to concatenate all the files, paste into
Excel or notepad plus plus

MS excel, notepad plus plus have remove duplicate entries feature.
 
Hey Dude,

Use this python script to do your job. It's pretty easy !

Code:
import os

currentDirectory = os.getcwd()
textFiles = []
for f in os.listdir(currentDirectory):
    if (f.endswith('.txt') or f.endswith('.TXT')) and (f != 'output.txt'):
        textFiles.append(f)

d = {}
for tf in textFiles:
    cf = open(tf, "r")
    for line in cf:
        line = line.strip('\n') + '\n'
        d[line] = 0
    cf.close()

wf = open("output.txt", "w")
wf.writelines(d)

i don't have knowledge about programing i am sad sir.
but if it is javascript i think i can do it.
 
hello all sir, now i found tool for resolve my problem it is here youtube. com/watch?v=KDA04sVIdNg
thank a lot for your comment. GOD BLESS YOU.
 
You don't need anything complex. Use the sort and uniq commands. There's plenty of online dedup pages.

Code:
sort textfile | uniq
 
Back
Top