摘要: 001、 [root@pc1 test]# ls a.sh [root@pc1 test]# cat a.sh ## 测试程序 #!/bin/bash for ((i = 1; i <= 3; i++)) do echo " outer loop:$i " for ((j = 1; j <= 3; 阅读全文
posted @ 2022-11-04 23:02 小鲨鱼2018 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test3]# ls GCF_000001405.40_GRCh38.p14_genomic.gff [root@pc1 test3]# awk '$3 == "gene" {split($9, a, ";"); for(i in a) {split(a[i], b, 阅读全文
posted @ 2022-11-04 18:18 小鲨鱼2018 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 001、基本用法 [root@pc1 test4]# ls a.txt [root@pc1 test4]# cat a.txt a b c d b e a d e z b c a d e [root@pc1 test4]# awk '{print ay[$2]++}' a.txt 0 1 0 2 1 阅读全文
posted @ 2022-11-04 17:55 小鲨鱼2018 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 001、 >>> import os >>> os.listdir("/home/test") ## 结果返回的是列表 ['a.txt', 'b.txt', 'test1', 'test2', 'test3'] >>> 阅读全文
posted @ 2022-11-04 12:12 小鲨鱼2018 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test]# ls a.txt test.py [root@PC1 test]# cat a.txt ## 测试文件 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 阅读全文
posted @ 2022-11-04 12:07 小鲨鱼2018 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 001\ [root@pc1 test3]# cat a.fa >chr1 cccccggggggggttttgg cccgggggg >chr2 uuuuutttttNNNNNddffff dddgggggggggggcccccccccc [root@pc1 test3]# cat test.py 阅读全文
posted @ 2022-11-04 10:05 小鲨鱼2018 阅读(65) 评论(0) 推荐(0) 编辑