上の削除一致する行へのsed

SED -i -n '$ N; !! /マッチ/ P; D' ファイルを処理します

 

おすすめ

転載: www.cnblogs.com/amoy9812/p/12536665.html