上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: ```#!/usr/bin/perl -wuse strict;die "Usage: $0 \n" unless (@ARGV == 1);my $lines = 0;my $bases = 0;while (my $line = ){ # operator reads one line at ... 阅读全文
posted @ 2015-07-03 19:50 liuhui_pine 阅读(540) 评论(0) 推荐(0)
摘要: ```awk '/pattern/ {next} {print $0}' filename``` 阅读全文
posted @ 2015-07-03 18:47 liuhui_pine 阅读(185) 评论(0) 推荐(0)
摘要: ###格式替代符```%b 相对应的参数被视为含有要被处理的转义序列之字符串。%c ASCII字符。显示相对应参数的第一个字符%d, %i 十进制整数%e, %E, %f 浮点格式%g %e或%f转换,看哪一个较短,则删除结尾的零%G %E或%f转换,看哪一个较短,则删除结尾的零%o 不带正负号的八... 阅读全文
posted @ 2015-07-02 20:33 liuhui_pine 阅读(147) 评论(0) 推荐(0)
摘要: ``` awk '/^>/ {printf("\n%s\t",$0);next;} {printf("%s",$0);} END {printf("\n");}' / { next } { getline seq } length(seq) > 200 { print $0 "\n" seq }' > assembly.fas ``` 阅读全文
posted @ 2015-07-02 16:31 liuhui_pine 阅读(1302) 评论(0) 推荐(0)
摘要: # to 2.2.30#```cd /usr/binsudo su```#```mv blastdb_aliastool blastdb_aliastool_2.25mv blastdbcheck blastdbcheck_2.25mv blastdbcmd blastdbcmd_2.25mv bl... 阅读全文
posted @ 2015-07-01 18:32 liuhui_pine 阅读(701) 评论(0) 推荐(0)
摘要: 转自 http://www.cnblogs.com/xianghang123/archive/2012/08/23/2652806.htmlLinux下安装与使用本地的perl模块在使用Linux或是unix时,perl是一个非常有用的脚本的语言。关于perl的模块安装,网上也有很多介绍,一方面可以... 阅读全文
posted @ 2015-06-26 16:19 liuhui_pine 阅读(5020) 评论(0) 推荐(0)
摘要: ```#/usr/bin/perl -wuse strict;my $usage = "\n\nusage: $0 \n\n";my $length = $ARGV[0] || die $usage;&RandomSeq($ARGV[0]); # invoke the subroutinesub R... 阅读全文
posted @ 2015-06-23 09:24 liuhui_pine 阅读(235) 评论(0) 推荐(0)
摘要: ##```cat tet.sh```------------```#!/bin/bashs=0while [ $s -lt 10000 ]do let "s = $s + 1" echo $s >> /dev/null 2>&1done```##```time sh let.sh # 计算脚... 阅读全文
posted @ 2015-06-21 19:12 liuhui_pine 阅读(218) 评论(0) 推荐(0)
摘要: hexdump -C test_idex.1.bt2 | less -S 阅读全文
posted @ 2015-06-18 10:44 liuhui_pine 阅读(448) 评论(0) 推荐(0)
摘要: #### extracting lines bases a list using awk```awk 'NR==FNR{a[$1]=$0; next}($1 in a){print a[$1]"\n"$0}' file list```参考 http://521cto.blog.51cto.com/9... 阅读全文
posted @ 2015-05-08 20:49 liuhui_pine 阅读(170) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页