Seth Woolley's Man Viewer

funzip(1) - funzip, funzip - filter for extracting from a ZIP archive in a pipe - man 1 funzip

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

FUNZIP(1L)                                                          FUNZIP(1L)



NAME
       funzip - filter(1,3x,3x curs_util) for extracting from a ZIP archive in(1,8) a pipe(2,8)

SYNOPSIS
       funzip [-password] [input[.zip|.gz]]

ARGUMENTS
       [-password]
              Optional  password  to  be  used  if(3,n)  ZIP  archive is encrypted.
              Decryption may not be supported at some sites.  See  DESCRIPTION
              for more details.

       [input[.zip|.gz]]
              Optional  input  archive file(1,n) specification. See DESCRIPTION for
              details.

DESCRIPTION
       funzip without a file(1,n) argument acts as a filter(1,3x,3x curs_util); that  is,  it  assumes
       that  a  ZIP archive (or a gzip'd(1) file(1,n)) is being piped into standard
       input, and it extracts the first member from  the  archive  to  stdout.
       When  stdin comes from a tty(1,4) device, funzip assumes that this cannot be
       a stream of (binary) compressed data  and  shows  a  short  help  text,
       instead.   If  there  is  a  file(1,n) argument, then input is read(2,n,1 builtins) from the
       specified file(1,n) instead of from stdin.

       A password for encrypted zip files can be specified on the command line
       (preceding  the  file(1,n)  name,  if(3,n)  any) by prefixing the password with a
       dash.  Note that this constitutes a security risk on many systems; cur-
       rently  running  processes are often visible via simple commands (e.g.,
       ps(1) under Unix), and command-line histories  can  be  read.   If  the
       first  entry  of the zip file(1,n) 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 console.

       Given the limitation on single-member extraction, funzip is most useful
       in(1,8) conjunction with a secondary archiver program such as  tar(1).   The
       following  section  includes  an example illustrating this usage in(1,8) the
       case of disk backups to tape.

EXAMPLES
       To use funzip to extract the first member file(1,n) of the archive  test.zip
       and to pipe(2,8) it into more(1):

           funzip test.zip | more

       To  use  funzip  to  test the first member file(1,n) of test.zip (any errors
       will be reported on standard error(8,n)):

           funzip test.zip > /dev/null

       To use zip and funzip in(1,8) place of compress(1) and zcat(1) (or  gzip(1L)
       and gzcat(1L)) for tape backups:

           tar cf - . | zip -7 | dd of=/dev/nrst0 obs=8k
           dd if(3,n)=/dev/nrst0 ibs=8k | funzip | tar xf -

       (where, for example, nrst0 is a SCSI tape drive).

BUGS
       When  piping  an encrypted file(1,n) into more and allowing funzip to prompt
       for password, the terminal may sometimes be reset(1,7,1 tput) to a  non-echo  mode.
       This  is  apparently  due to a race condition between the two programs;
       funzip changes the terminal mode to  non-echo  before  more  reads  its
       state,  and  more  then  ``restores''  the terminal to this mode before
       exiting.  To recover, run funzip on  the  same  file(1,n)  but  redirect  to
       /dev/null  rather  than piping into more; after prompting again for the
       password, funzip will reset(1,7,1 tput) the terminal properly.

       There is presently no way to extract any member but the  first  from  a
       ZIP  archive.   This would be useful in(1,8) the case where a ZIP archive is
       included within another archive.  In the case where the first member is
       a directory, funzip simply creates the directory and exits.

       The  functionality  of  funzip should be incorporated into unzip itself
       (future release).

SEE ALSO
       gzip(1L), unzip(1L), unzipsfx(1L), zip(1L), zipcloak(1L),  zipinfo(1L),
       zipnote(1L), zipsplit(1L)

URL
       The Info-ZIP home page is currently at
           http://www.info-zip.org/pub/infozip/
       or
           ftp://ftp.info-zip.org/pub/infozip/ .

AUTHOR
       Mark Adler (Info-ZIP)



Info-ZIP                   28 February 2005 (v3.94)                 FUNZIP(1L)

References for this manual (incoming links)