上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 408 下一页
摘要: 001、 awk [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt a ii b kk a jj c yy b 77 e tt [root@pc1 test02]# awk '!ay[$1]++' a.txt a ii b kk c y 阅读全文
posted @ 2023-09-13 11:37 小鲨鱼2018 阅读(641) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt ## 测试文件 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 [root@pc1 test02]# c 阅读全文
posted @ 2023-09-12 23:53 小鲨鱼2018 阅读(115) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test02]# ls a.sh b.sh [root@pc1 test02]# cat a.sh ## 测试程序1 #!/bin/bash str1="ab_cd_ef" tmp1=$(echo $str1 | sed 's/_/\n/g') echo $tmp1 [ 阅读全文
posted @ 2023-09-12 23:33 小鲨鱼2018 阅读(175) 评论(0) 推荐(0)
摘要: 001、 方法1 [root@pc1 test01]# ls a.txt test.sh [root@pc1 test01]# cat a.txt ## 测试数据, 依据最后一列展开为多行 chrY 2657879 2658063 CTCF 652 GM19239 chrY 2664424 2664 阅读全文
posted @ 2023-09-12 22:14 小鲨鱼2018 阅读(37) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 ## 获取数组的长度 [root@pc1 test02]# awk 'BEGIN{ay["a"] = 阅读全文
posted @ 2023-09-12 21:58 小鲨鱼2018 阅读(429) 评论(0) 推荐(0)
摘要: 001、方法1 [root@pc1 test03]# ls a.txt [root@pc1 test03]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 阅读全文
posted @ 2023-09-12 17:55 小鲨鱼2018 阅读(262) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test03]# ls a.txt [root@pc1 test03]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 阅读全文
posted @ 2023-09-12 17:29 小鲨鱼2018 阅读(145) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test01]# ls a.fa test.py [root@pc1 test01]# cat a.fa ## 测试文件 ATCC GGGC ATGG AAGC TTGG ATGC ATGG [root@pc1 test01]# cat test.py ## 转置程序 阅读全文
posted @ 2023-09-12 15:25 小鲨鱼2018 阅读(41) 评论(0) 推荐(0)
摘要: 001、 [root@pc1 test01]# ls a.fa test.py [root@pc1 test01]# cat a.fa ## 测试fasta文件 >Rosalind_1 ATCCAGCT >Rosalind_2 GGGCAACT >Rosalind_3 ATGGATCT >Rosal 阅读全文
posted @ 2023-09-12 11:46 小鲨鱼2018 阅读(62) 评论(0) 推荐(0)
摘要: 001、find >>> str1 = "xyabmnabkj" ## 测试字符串 >>> for i in enumerate(str1): ... print(i) ## 列出每个字符的索引 ... (0, 'x') (1, 'y') (2, 'a') (3, 'b') (4, 'm') (5, 阅读全文
posted @ 2023-09-11 23:26 小鲨鱼2018 阅读(87) 评论(0) 推荐(0)
上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 408 下一页