Your Ad 

Wednesday, May 09, 2007

How to filter repeated lines from a text file on windows?

Download and use uniq.exe utility.
It displays unique lines of a sorted file.Got to use -d switch.

displays only lines which are repeated (one copy of each line).

displays only those lines which are not repeated.

uniq -d input_file output_file

Download from here

No comments: