Perl6-One-Liners - Look what you can do at the terminal! A collection of Perl6 one liners
You can sort then uniq:
$ sort -u file.txt