sed删除指定行数 #sed删除指定行及之后的2两行 root@mail ~ # echo '1 > 2 > 3 > 4 > 5 > 6 > 7 > 8' | sed '/5/,+2d' 1 2 3 4 8 Tags: sed删除指定行及之后的两行, sed详解 Read more articles Previous Postsed正则 Next Postsed合并偶数行到上一行 You Might Also Like curl方式执行shell脚本时如何传参 May 6, 2015 scplt封锁检查脚本 March 16, 2016 Forticlient连接错误 July 12, 2015