Help for this page

Select Code to Download


  1. or download this
    % perl -ne 'push @a, $_; $h{$_}++; END { print for grep $h{$_}==1, @a 
    +}' foo.txt
    
  2. or download this
    % perl -ne '$h{$_}++; END { print for grep $h{$_}==1, keys %h }' foo.t
    +xt