摘要:
001、间隔2 [root@pc1 test1]# ls a.txt [root@pc1 test1]# cat a.txt ## 测试数据 1 2 3 4 5 6 7 8 9 10 [root@pc1 test1]# awk '{if(NR % 2 == 1) {count++}; if(NR % 阅读全文
posted @ 2023-10-12 14:28
小鲨鱼2018
阅读(146)
评论(0)
推荐(0)
摘要:
001、批量提取列,根据索引index.txt文件批量提取2、4、8、9列 [root@pc1 test2]# ls a.txt index.txt [root@pc1 test2]# cat a.txt ## 测试文件 001 002 003 004 005 006 007 008 009 010 阅读全文
posted @ 2023-10-12 12:16
小鲨鱼2018
阅读(352)
评论(0)
推荐(0)
摘要:
001、 [root@pc1 test2]# ls a.txt [root@pc1 test2]# cat a.txt 01 02 1 03 04 2 05 06 3 07 08 4 09 10 5 11 12 6 13 14 7 15 16 8 17 18 9 19 20 10 21 22 11 阅读全文
posted @ 2023-10-12 11:50
小鲨鱼2018
阅读(36)
评论(0)
推荐(0)
摘要:
[root@pc1 test1]# ls file.txt [root@pc1 test1]# cat file.txt ## 测试文件 0 01 02 03 04 0 05 06 07 08 0 09 10 11 12 1 13 14 15 16 1 17 18 19 20 2 77 33 22 阅读全文
posted @ 2023-10-12 10:37
小鲨鱼2018
阅读(52)
评论(0)
推荐(0)
摘要:
001、 [root@pc1 test1]# ls a.txt [root@pc1 test1]# a=4 ## 定义变量a [root@pc1 test1]# cat a.txt 1 [root@pc1 test1]# awk '{for(i = 1; i <= "'$a'"; i++) prin 阅读全文
posted @ 2023-10-12 10:15
小鲨鱼2018
阅读(163)
评论(0)
推荐(0)
摘要:
001、方法1 ## step1: awk 'NR % 4 == 1' batch9.fastq | sed 'N; s/\n/\t/; s/\//\t/g' | awk '{if($1 == $3 && $2 != $4) {print (NR - 1) * 8 + 1, NR * 8}}' > 阅读全文
posted @ 2023-10-12 01:56
小鲨鱼2018
阅读(52)
评论(0)
推荐(0)

浙公网安备 33010602011771号