上一页 1 ··· 210 211 212 213 214 215 216 217 218 ··· 341 下一页
摘要: Linux下修改PATH的方法 1.直接在命令行里敲 PATH=$PATH:/path1:/path2:/pathN用户登出之后PATH恢复原样. 只是临时起作用。 2.修改~目录下bash_profile, cdvi .bash_profile找到PATH=$PATH:$HOME/bin这一行,直 阅读全文
posted @ 2013-12-08 18:46 emanlee 阅读(752) 评论(0) 推荐(0)
摘要: #假设文件名是:fortest.gtf declare -i fileLines fileLines=`sed -n '$=' fortest.gtf` echo $fileLines # linesCount=0let linesCount=($fileLines/20+1)*2 阅读全文
posted @ 2013-11-26 11:41 emanlee 阅读(377) 评论(0) 推荐(0)
摘要: python中 getopt 模块 (import getopt),该模块是专门用来处理命令行参数的函数getopt(args, shortopts, longopts = [])参数args一般是sys.argv[1:]shortopts 短格式 (-) longopts 长格式(--) 命令行中... 阅读全文
posted @ 2013-11-20 21:56 emanlee 阅读(550) 评论(0) 推荐(0)
摘要: 安装和使用screen安装screenyum可以在线安装screenyum install screen使用screen1、创建screen会话;进入Xshell,运行以下:screen 2、离开screen,但是保留里面的程序继续运行,操作是Ctrl+a d ,让程序在后台运行-S 指定scr... 阅读全文
posted @ 2013-11-15 08:26 emanlee 阅读(1094) 评论(0) 推荐(0)
摘要: 输出到文件log中,并在屏幕上显示:#ls >&1 | tee log追加输出到文件log中,并在屏幕上显示:#ls >&1 | tee -a log 阅读全文
posted @ 2013-11-13 11:29 emanlee 阅读(1621) 评论(0) 推荐(0)
摘要: 使用 fuser xxx 命令查看xxx文件被哪个进程占用,然后关闭该进程,解决问题。# fuser xxxxxx: 2878# kill -9 2878注:xxx是文件名;2878是进程号;kill -9 2878 强制终止该进程;必须在root权限下才可用fuser。 阅读全文
posted @ 2013-11-12 15:39 emanlee 阅读(29282) 评论(0) 推荐(1)
摘要: 获得每行的最后一个逗号后边的内容.例如:KIAA1967 KIAA1967, xxxxSECIS biding proin 2-like, SECISBP2L, yyyy 1234ankyrin repat and KH doain, conaining ,ANKHD1, zzzzz要得到:xxxx... 阅读全文
posted @ 2013-10-25 08:26 emanlee 阅读(2302) 评论(0) 推荐(1)
摘要: strtok() 字符串分割函数strstr() 字符串查找函数范例#include main(){ char * s = "012345678901234567890123456789"; char *p; p = strstr(s, "901"); printf("%s\n", p)... 阅读全文
posted @ 2013-10-06 11:36 emanlee 阅读(636) 评论(0) 推荐(0)
摘要: 命令行: ~/sratoolkit/sratoolkit.2.3.2/bin/fastq-dump --split-spot --gzip xxxx.sra 报错信息: fastq-dump.2.3.2 err: name not found while resolving tree within 阅读全文
posted @ 2013-10-03 11:07 emanlee 阅读(9844) 评论(0) 推荐(0)
摘要: tophat输出结果junction.bedBED formatBED format provides a flexible way to define the data lines that are displayed in an annotation track. BED lines have ... 阅读全文
posted @ 2013-10-03 08:56 emanlee 阅读(3937) 评论(1) 推荐(0)
上一页 1 ··· 210 211 212 213 214 215 216 217 218 ··· 341 下一页