Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Output archive comment of a zip file

How can I output the comment archive of a zip file? Basically I want to copy the zip archive comment to the clipboard.

zip -z file

prompts me to enter a new comment, how can I only output it, without prompt?

like image 698
Erandir Avatar asked Jan 31 '13 15:01

Erandir


1 Answers

You need to use unzip and not zip to do so.

unzip -z file

will output the comments saved in the zip file.

like image 195
lev.tuby Avatar answered Oct 24 '22 11:10

lev.tuby