perl -ne '$h{$_}++}{print for keys%h' tt.txt [download]
Update: not to mention sort...
sort -u tt.txt [download]
In reply to Re: one line for combining line by toolic in thread one line for combining line by xiaoyafeng