Skip to content
/ zlook Public

List and Extract Entry of Nested Zip Archives to any given depth

License

Notifications You must be signed in to change notification settings

elankath/zlook

Repository files navigation

zlook

List entries or extract entry from nested zip archive to any configurable depth

Installation

Usage Help

Usage of zlook:
  -d int
    	Maximum Depth to which to inspect archive (default 1)
  -p	Prefix Parent Path (default true)
  -t value
    	Comma Separated Archive Types (default [.zip .esa .jar])
  -x string
    	Extract matching entry (suffix match) to stdout

Examples

Download a nested zip archive [simple-ear[(http://repo1.maven.org/maven2/org/codehaus/cargo/simple-ear/1.6.7/simple-ear-1.6.7.ear) from maven repo

List Entries

> zlook ~/Downloads/simple-ear-1.6.7.ear  
META-INF/MANIFEST.MF
META-INF/application.xml
simple-war-1.6.7.war
simple-war-1.6.7.war/META-INF/MANIFEST.MF
simple-war-1.6.7.war/index.jsp
simple-war-1.6.7.war/WEB-INF/web.xml
simple-war-1.6.7.war/META-INF/maven/org.codehaus.cargo/simple-war/pom.xml
simple-war-1.6.7.war/META-INF/maven/org.codehaus.cargo/simple-war/pom.properties
META-INF/maven/org.codehaus.cargo/simple-ear/pom.xml
META-INF/maven/org.codehaus.cargo/simple-ear/pom.properties

Extract Entry To Stdout

>zlook -x simple-war/pom.properties ~/Downloads/simple-ear-1.6.7.ear                
#Generated by Maven
#Sat Mar 03 14:42:01 CET 2018
version=1.6.7
groupId=org.codehaus.cargo
artifactId=simple-war

About

List and Extract Entry of Nested Zip Archives to any given depth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages