Your Ad 
Here

Tuesday, December 06, 2011

How to delete duplicate lines along with its original in a text file?

Here is a way to delete repeated duplicate lines along with its original in a text file. If there are two lines with same string in it,it will remove both.
Finding double entries and delete both of them in a text file.
Do it in unix.
sort filename | uniq –u
Out put to a text file.

No comments: