perl -ne "next if $seen{$_}++;print" a.txt | sort >b.txt [download]
In reply to Re: 'sort -u' in perl by Ieronim in thread 'sort -u' in perl by sanPerl