in reply to print a hash

perl -n -e "chomp; /(\d+)$/; print $1 unless $hash{$_}; $hash{$_}++;" +infile>outfile

holli, regexed monk

Replies are listed 'Best First'.
Re^2: print a hash
by Anonymous Monk on Jan 20, 2005 at 10:12 UTC
    thanks for your help