perl -n -e "chomp; /(\d+)$/; print $1 unless $hash{$_}; $hash{$_}++;" +infile>outfile [download]
In reply to Re: print a hash by holli in thread print a hash by Anonymous Monk