$ unzip -q -c myarchive.jar meta-INF/MANIFEST.MF
-q
将取消解压缩程序的详细输出-c
将提取到标准输出
例:
$ unzip -q -c commons-lang-2.4.jar meta-INF/MANIFEST.MFManifest-Version: 1.0Ant-Version: Apache Ant 1.7.0Created-By: 1.5.0_13-119 (Apple Inc.)Package: org.apache.commons.langExtension-Name: commons-langSpecification-Version: 2.4Specification-Vendor: Apache Software FoundationSpecification-Title: Commons LangImplementation-Version: 2.4Implementation-Vendor: Apache Software FoundationImplementation-Title: Commons LangImplementation-Vendor-Id: org.apacheX-Compile-Source-JDK: 1.3X-Compile-Target-JDK: 1.2
或者,您可以使用
-p代替-
q -c。
-p将文件提取到管道(stdout)。除了文件数据外,什么都没有发送到stdout,并且文件总是以二进制格式提取,就像存储文件一样(不进行转换)。



