This tutorial is a beginners handbook for new Linux users / Sys admins and school students studying Linux or computer science. This book is licensed under "Creative Commons Attribution Noncommercial Share Alike 3.0 Unported".
You can sort then uniq:
$ sort -u file.txt