Remove duplicate lines from text file

This will keep the first instance of a duplicate:

sort for_db.txt | uniq > for_db_no_duplicates_2.txt

This will remove all duplicates (including the first occurence):

sort for_db.txt | uniq -u > for_db_no_duplicates_2.txt