List entries or extract entry from nested zip archive to any configurable depth
- Install GO Distribution for your platform using. See https://golang.org/doc/install
- Execute
go get github.com/elankath/zlook/cmd/zlook
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
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
> 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
>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