print content of more than one file in a zip archive
Use the -p
option of unzip to pipe the output. Multiple files are concatenated. The -c
option does the same thing, but includes the file name in front of each file.
You can do this to output a file without extracting:
$ unzip -p <zip_file> <file_to_print>
For example:
$ unzip -p MyEar.ear META-INF/MANIFEST.MF
As cur4so mentioned you can also list all files using:
$ unzip -l <zip_file>