Script/software that deletes multiple lines in .txt files

raybeam

Newbie
Joined
Jan 12, 2011
Messages
41
Reaction score
2
The word in the title should be "duplicate", then you might understand me better.
It's a simple little task, but haven't found any program that does the job..

What I want is a program that finds multiples and lets me delete them:
email1
email2
email3
email1
email2
email4
-------------
In my case above result would be

email1
email2
email3
email4
 
Import data into excel and remove duplicates then copy and paste back to a .txt
 
Loop each line of the txt loading them one by one in a List.
If the entrance is already present in that List, skip the current line.
Pseudo-code will be.

List li;
For Each line in txt
For Each element in li
If line == element
li.add(element);

Easy ;)
 
TextPipe is best - search for it here , it has 1000 functions ready to use ,
Extract link or Link Extractor (I don't remember the name) is also removing duplicate lines automaticaly , you can find it here too.
many other text editors do that too , very simple task for every editor . almost everywhere the function should name : remove duplicate lines
 
Thanks for your replies, will start taking a look at textpipe then.
Love this forum, so much knowledge. :-)
 
I can recommend using TextPipe Pro if anyone else has the same issue in the future.
 
If you are using Linux, type something like:

Code:
uniq original.list.txt > dedupe.list.txt

That should help you without installing anything else :)
 
Back
Top