extracting unique lines from text file

I have a file with 14million lines and I would like to extract all the unique lines from the file into another text file.

For example:

Contents of file1

happy
sad
smile
happy
funny
sad

I want to run a command against file one that only returns the unique lines (ie 1 line for happy and 1 line for sad).

Could someone please point me in the right direction.

Thanks

You can try:

sort file | uniq > new_file

Regards

If your sort support -u "uniq" option:

sort -u file > new_file

Thank you...it works like a charm