perl -e 'print keys %{ { map { $_ => 1 } <> } }' < test.data