在 Java 中,META-INF/MANIFEST.MF 文件具有最大行长度。除此之外,会插入一个自动换行符,并在下一行的开头用空格表示,如下所示:
Manifest-Version: 1.0
Export-Package: com.google.common.net;uses:="com.google.common.base,ja
vax.annotation[file continues]
Bundle-Name: Guava: Google Core Libraries for Java
grep
不幸的是,这使得sed
bash 变得很痛苦。
您将如何使用 bash 将其解包到其中?
Manifest-Version: 1.0
Export-Package: com.google.common.net;uses:="com.google.common.base,javax.annotation[file continues]
Bundle-Name: Guava: Google Core Libraries for Java
我会尝试sed
,但它只能在每行的基础上工作,而且我也无法tr
正常工作。
谢谢!
编辑:相关问题