摘要:
1、 [root@rhel7pc1 test]# ls a.txt [root@rhel7pc1 test]# cat a.txt 1 k d f 2 x c g 3 z c b 4 f i j 5 e d g 6 i j e [root@rhel7pc1 test]# sed '/x/, +1d' 阅读全文
posted @ 2022-04-10 14:52
小鲨鱼2018
阅读(88)
评论(0)
推荐(0)
摘要:
1、 [root@rhel7pc1 test]# ls a.txt [root@rhel7pc1 test]# cat a.txt 1 k d f 2 x c g 3 z c b 4 e w e 5 z c x 6 e d g 7 i j e [root@rhel7pc1 test]# grep - 阅读全文
posted @ 2022-04-10 14:42
小鲨鱼2018
阅读(105)
评论(0)
推荐(0)
摘要:
1、 [root@rhel7pc1 test]# ls a.txt [root@rhel7pc1 test]# cat a.txt 1 k d f 2 x c g 3 z c b 4 e w e 5 z c f 6 e d g [root@rhel7pc1 test]# sed -n '/x/{n; 阅读全文
posted @ 2022-04-10 14:24
小鲨鱼2018
阅读(399)
评论(0)
推荐(0)
摘要:
1、测试数据 [root@rhel7pc1 test]# ls a.txt [root@rhel7pc1 test]# cat a.txt ## 测试数据 1 k d f 2 x c g 3 z c b 4 e w e 5 z c f 6 e d g 2、删除匹配行及其下一行 [root@rhel7 阅读全文
posted @ 2022-04-10 14:02
小鲨鱼2018
阅读(1280)
评论(0)
推荐(0)

浙公网安备 33010602011771号