2016-12-06 112 views

回答

1

使用Sed則你可以這樣做:

sed '/^-----BEGIN PGP/,/^-----END PGP/d' file 

簡而言之:您定義的範圍(d)刪除兩個模式/pat1/,/pat2/之間的行。

+0

是啊!它做到了 –