perl -ne 'print if 1 == ++$s{$_}' < in > out