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.
Tuesday, December 06, 2011
How to delete duplicate lines along with its original in a text file?
Posted by PKP at 12/06/2011 02:17:00 PM
Labels: How-to, Tips and Tricks, Unix
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment