funzip without a file argument acts as a filter; that is, it assumes that a ZIP archive is being piped into standard input, and it extracts the first member from the archive to stdout.
If there is a file argument, then input is read from the specified file instead of from stdin.
A password for encrypted zip files can be specified on the command line (preceding the file name, if any) by prefixing the password with a dash. If the first entry of the zip file is encrypted and no password is specified on the command line, then the user is prompted for a password and the password is not echoed on the terminal.
Given the limitation on single-member extraction, funzip is most useful in conjunction with a secondary archiver program such as tar.
Syntax
funzip [-password] [input[.zip]] |
Optional password to be used if ZIP archive is encrypted.
Optional input archive file specification. |
Example
To use funzip to extract the first member file of the archive test.zip and to pipe it into more:
To use funzip to test the first member file of test.zip (any errors will be reported on standard error):
|
Restrictions
When piping an encrypted file into more and allowing funzip to prompt for password, the terminal may sometimes be reset to a non-echo mode. There is presently no way to extract any member but the first from a ZIP archive. |
See also
unzip, unzipsfx, zip, zipcloak, zipinfo, zipnote, zipsplit |