1FUNZIP(1L)                                                          FUNZIP(1L)
2
3
4

NAME

6       funzip - filter for extracting from a ZIP archive in a pipe
7

SYNOPSIS

9       funzip [-password] [input[.zip|.gz]]
10

ARGUMENTS

12       [-password]
13              Optional  password  to  be  used  if  ZIP  archive is encrypted.
14              Decryption may not be supported at some sites.  See  DESCRIPTION
15              for more details.
16
17       [input[.zip|.gz]]
18              Optional  input  archive file specification. See DESCRIPTION for
19              details.
20

DESCRIPTION

22       funzip without a file argument acts as a filter; that  is,  it  assumes
23       that  a  ZIP archive (or a gzip'd(1) file) is being piped into standard
24       input, and it extracts the first member from  the  archive  to  stdout.
25       When  stdin comes from a tty device, funzip assumes that this cannot be
26       a stream of (binary) compressed data  and  shows  a  short  help  text,
27       instead.   If  there  is  a  file argument, then input is read from the
28       specified file instead of from stdin.
29
30       A password for encrypted zip files can be specified on the command line
31       (preceding  the  file  name,  if  any) by prefixing the password with a
32       dash.  Note that this constitutes a security risk on many systems; cur‐
33       rently  running  processes are often visible via simple commands (e.g.,
34       ps(1) under Unix), and command-line histories  can  be  read.   If  the
35       first  entry  of the zip file is encrypted and no password is specified
36       on the command line, then the user is prompted for a password  and  the
37       password is not echoed on the console.
38
39       Given the limitation on single-member extraction, funzip is most useful
40       in conjunction with a secondary archiver program such as  tar(1).   The
41       following  section  includes  an example illustrating this usage in the
42       case of disk backups to tape.
43

EXAMPLES

45       To use funzip to extract the first member file of the archive  test.zip
46       and to pipe it into more(1):
47
48       funzip test.zip | more
49
50       To  use  funzip  to  test the first member file of test.zip (any errors
51       will be reported on standard error):
52
53       funzip test.zip > /dev/null
54
55       To use zip and funzip in place of compress(1) and zcat(1) (or  gzip(1L)
56       and gzcat(1L)) for tape backups:
57
58       tar cf - . | zip -7 | dd of=/dev/nrst0 obs=8k
59       dd if=/dev/nrst0 ibs=8k | funzip | tar xf -
60
61       (where, for example, nrst0 is a SCSI tape drive).
62

BUGS

64       When  piping  an encrypted file into more and allowing funzip to prompt
65       for password, the terminal may sometimes be reset to a  non-echo  mode.
66       This  is  apparently  due to a race condition between the two programs;
67       funzip changes the terminal mode to  non-echo  before  more  reads  its
68       state,  and  more  then  ``restores''  the terminal to this mode before
69       exiting.  To recover, run funzip on  the  same  file  but  redirect  to
70       /dev/null  rather  than piping into more; after prompting again for the
71       password, funzip will reset the terminal properly.
72
73       There is presently no way to extract any member but the  first  from  a
74       ZIP  archive.   This would be useful in the case where a ZIP archive is
75       included within another archive.  In the case where the first member is
76       a directory, funzip simply creates the directory and exits.
77
78       The  functionality  of  funzip should be incorporated into unzip itself
79       (future release).
80

SEE ALSO

82       gzip(1L), unzip(1L), unzipsfx(1L), zip(1L), zipcloak(1L),  zipinfo(1L),
83       zipnote(1L), zipsplit(1L)
84

URL

86       The Info-ZIP home page is currently at
87       http://www.info-zip.org/pub/infozip/
88       or
89       ftp://ftp.info-zip.org/pub/infozip/ .
90

AUTHOR

92       Mark Adler (Info-ZIP)
93
94
95
96Info-ZIP                     20 April 2009 (v3.95)                  FUNZIP(1L)
Impressum