Help for this page

Select Code to Download


  1. or download this
    perl -ple's/^(\S+\s+\S+).*/$1/' infile > outfile
    
  2. or download this
    perl -ple's/^\S+\s+\S+\K//' infile > outfile
    
  3. or download this
    perl -ne'print if $.>1'
    
  4. or download this
    chomp( my $header = <> );
    my @headers = $header =~ /\S+/g;
    ...
            );
        }
    }
    
  5. or download this