摘要: 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 阅读(83) 评论(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 阅读(111) 评论(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 阅读(19) 评论(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 阅读(240) 评论(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 阅读(150) 评论(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 阅读(73) 评论(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 阅读(21) 评论(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 阅读(28) 评论(0) 推荐(0) 编辑