1k d f4e w e5z c f6e d g 3、删除匹配行的下一行 [root@rhel7pc1 test]# ls a.txt [root@rhel7pc1 test]# cat a.txt1k d f2x c g3z c b4e w e5z c f6e d g [root@rhel7pc1 test]# sed'/x/ {n; d}'a.txt## 删除匹配x行的下一行1k d f2x c g4e w e5z c f6e ...