perl -e"while(<>){print unless $uniq{$_}++}" outfile