利用// 來代表前一個出現的正規表示式,也就是/aa/: [root@54a3bd19a6f8 /]# cat test.txt | sed '0,/aa/{//d}' zz1 bb1 cc1 aa2 bb2 cc2.
確定! 回上一頁