上一页 1 ··· 144 145 146 147 148 149 150 151 152 ··· 367 下一页
摘要: 001: p:输出缓冲区中的所有内容。 P:输出缓冲区中一个个换行符之前的内容 (base) root@PC1:/home/test4# ls a.txt (base) root@PC1:/home/test4# cat a.txt 1 2 3 4 5 ## N的作用是预先读取下一行,将两行作为一行 阅读全文
posted @ 2022-08-17 16:53 小鲨鱼2018 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test4# ls a.txt (base) root@PC1:/home/test4# cat a.txt 1 2 3 4 34aaaa 5 6 7 aaaa 8 9 10 (base) root@PC1:/home/test4# sed '$ 阅读全文
posted @ 2022-08-17 16:25 小鲨鱼2018 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test4# cat a.txt 1 2 3 4 34aaaa 5 6 7 aaaa 8 9 10 (base) root@PC1:/home/test4# sed -e:b -e '$!{N;1,1bb' -e\} -e '/\n.*aaa/! 阅读全文
posted @ 2022-08-17 16:20 小鲨鱼2018 阅读(843) 评论(0) 推荐(0) 编辑
摘要: 001、方法1 root@PC1:/home/test# ls a.fasta test.py root@PC1:/home/test# head -n 5 a.fasta ## 参考基因组文件 >NC_056054.1 Ovis aries strain OAR_USU_Benz2616 bree 阅读全文
posted @ 2022-08-17 07:56 小鲨鱼2018 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test4# ls a.txt (base) root@PC1:/home/test4# cat a.txt e ds d g d E d G D f (base) root@PC1:/home/test4# sed 's/e/MMM/' a.t 阅读全文
posted @ 2022-08-17 06:12 小鲨鱼2018 阅读(1874) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test2# ls a.txt (base) root@PC1:/home/test2# cat a.txt a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 (base) root@PC1:/home/test2# sed 'n; 阅读全文
posted @ 2022-08-17 01:24 小鲨鱼2018 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test2# ls a.txt (base) root@PC1:/home/test2# cat a.txt 1 2 3 4 5 6 7 8 9 10 (base) root@PC1:/home/test2# cat a.txt | sed 'N 阅读全文
posted @ 2022-08-17 01:21 小鲨鱼2018 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test4# ls a.txt (base) root@PC1:/home/test4# cat a.txt ## 测试数据 This is 1 This is 2 This is 3 This is 4 This is 5 (base) roo 阅读全文
posted @ 2022-08-17 01:18 小鲨鱼2018 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test2# ls a.txt (base) root@PC1:/home/test2# cat a.txt ## 测试数据 01 02 AAA 03 04 05 BBB 06 07 08 CCC 09 10 (base) root@PC1:/h 阅读全文
posted @ 2022-08-17 01:07 小鲨鱼2018 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) root@PC1:/home/test2# cat a.txt ## 测试数据 1 2 3 k 4 5 6 7 k 8 9 10 (base) root@PC1:/home/test2# sed '/k/{n;d}' a.txt ## 删除匹配k之后的一行 1 2 3 k 5 阅读全文
posted @ 2022-08-17 00:57 小鲨鱼2018 阅读(59) 评论(0) 推荐(0) 编辑
上一页 1 ··· 144 145 146 147 148 149 150 151 152 ··· 367 下一页