in reply to Read file line by line and check equal lines

(update: tested and corrected by now)
perl -e '$_{ $_ }++ for (<>); print grep { $_{$_}==1 } keys %_;' <inpu +t >output

-M

Free your mind