You also need to sort the lines in case the duplicate records are not next to each other.
sort file.txt | uniq > file2.txt
Also, being a Unix-y solution, you may be leaving Windows users out in the cold unless they have cygwin or something similar installed.
In reply to Re: Re: Removing duplicate records in text file
by pzbagel
in thread Removing duplicate records in text file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |