How to read MANIFEST.MF file from JAR using Bash
问题 I need to read MANIFEST.MF maven manifest file from "some.jar" using bash 回答1: $ unzip -q -c myarchive.jar META-INF/MANIFEST.MF -q will suppress verbose output from the unzip program -c will extract to stdout Example: $ unzip -q -c commons-lang-2.4.jar META-INF/MANIFEST.MF Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 1.5.0_13-119 (Apple Inc.) Package: org.apache.commons.lang Extension-Name: commons-lang Specification-Version: 2.4 Specification-Vendor: Apache Software