in reply to Removing duplicate records in text file
You also need to sort the lines in case the duplicate records are not next to each other.
sort file.txt | uniq > file2.txt [download]
Also, being a Unix-y solution, you may be leaving Windows users out in the cold unless they have cygwin or something similar installed.
sort -u file.txt > file2.txt [download]