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