install tutorial
Perl install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y perl
perl -version
- my $secstr = join(“\t\t”,@items2[1…$#items2]);
- perl example:
1 | #!/usr/bin/perl -w |
How to split array in perl file
1 | my $datetime = $items2[5]; |
Question: If there is 10g file data 10g, but there are a lot of row is duplicated and need to merge the duplicate rows with a line, there are two ways to achieve. Ref
cat data |sort|uniq > new_data # cost too much time
A small tool processed by perl.
1 | #!/usr/bin/perl |
Regular Expression
1 | str="this is a string" |
judge symbol “[[“
match symbol “=~”