Help for this page

Select Code to Download


  1. or download this
    perl -MO=Deparse -ne 'print unless $n{$_}++' my_file.txt
    
  2. or download this
    LINE: while (defined($_ = <ARGV>)) {
        print $_ unless $n{$_}++;
    }