Awesome perl frameworks, libraries and software - PART 3
...TOM feed parser plugin openresty/lua-resty-redis - Lua redis client driver for the ngx_lua based on the cosocket API StefanSchroeder/Golang-Regex-Tutorial - Golang - Regu...2534 days ago
Most Commonly used Awk by Bioinformatician
...d 80th: awk 'NR>=20&&NR<=80' input.txt > output.txt calculate the average of column 2: awk '{x+=$2}END{print x/NR}' input.txt regex (egrep): awk '/^test[0-9]+/'...3952 days ago
Perl one-liner for bioinformatician !!!
...y lines in a fileperl -pe '$_ = ++$a." $_" if /regex/' #Number only lines that match a patternperl -ne 'print ++$a." $_" if /regex/' #Number and print only line...ert unix newlines into MAC newlines:perl -pe '/regexp/ && s/foo/bar/' #Sub...3668 days ago
Read lines from input file – print lines that match a regular expression
#!/usr/bin/perl use strict; use warnings; my $line; #read the line-by-line for each line ask if it matches the regex print it if it matches while($line = ){ chomp...2957 days ago
Perl script to count the number of files in a directory with regex
#!/usr/bin/perl use strict; use warnings; my @allNames=("_D14_","_B14_","_B15_","_C1T1_","_C3T3_","_D12_","_D13_","_E1B1_","_E1B3_","_H001_","_H3-03_","_H3-04_","_H...2277 days ago
1560 days ago
Comment on "Perl and BioPerl Tutorials"
Some other resources for learning Perl are : Perl Regex Tutor http://www.perlfect.com/articles/regextutor.shtml http://perl-tutorial.org/ http://perl-begin.org/tutorials/ http://perl-begin.org/learn/3747 days ago