A place for SGML and XML application developers.

March 23, 2018

View a JAR manifest without opening it from a Terminal Window

Filed under: Java,Linux — cangione @ 9:14 am

unzip -p jdiff.jar META-INF/MANIFEST.MF

Because the -p option specifies that the unzip command should write its output to standard output rather than to an actual file, there is no need to clean up any files.


unzip -p ant.jar META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 10.0-b22 (Sun Microsystems Inc.)

Name: org/apache/tools/ant/
Specification-Title: Apache Ant
Specification-Version: 1.7.1
Specification-Vendor: Apache Software Foundation
Implementation-Version: 1.7.1
Implementation-Vendor: Apache Software Foundation

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress