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