perl -ne '$h{$_}++}{print for keys%h' tt.txt