1ZIPGREP(1L)                                                        ZIPGREP(1L)
2
3
4

NAME

6       zipgrep - search files in a ZIP archive for lines matching a pattern
7

SYNOPSIS

9       zipgrep     [egrep_options]     pattern     file[.zip]    [file(s) ...]
10       [-x xfile(s) ...]
11

DESCRIPTION

13       zipgrep will search files within a ZIP archive for lines  matching  the
14       given  string  or  pattern.   zipgrep  is  a  shell script and requires
15       egrep(1) and unzip(1L) to function.  Its output is identical to that of
16       egrep(1).
17

ARGUMENTS

19       pattern
20              The  pattern  to  be  located  within a ZIP archive.  Any
21              string or regular expression accepted by egrep(1) may  be
22              used.   file[.zip]  Path  of  the ZIP archive.  (Wildcard
23              expressions for the ZIP archive name are not  supported.)
24              If  the literal filename is not found, the suffix .zip is
25              appended.  Note that self-extracting ZIP files  are  sup‐
26              ported,  as  with any other ZIP archive; just specify the
27              .exe suffix (if any) explicitly.
28
29       [file(s)]
30              An optional list of archive members to be processed, sep‐
31              arated  by spaces.  If no member files are specified, all
32              members of the ZIP archive are searched.  Regular expres‐
33              sions (wildcards) may be used to match multiple members:
34
35              *      matches a sequence of 0 or more characters
36
37              ?      matches exactly 1 character
38
39              [...]  matches  any  single  character  found  inside the
40                     brackets; ranges  are  specified  by  a  beginning
41                     character,  a hyphen, and an ending character.  If
42                     an exclamation point or a caret (`!' or `^')  fol‐
43                     lows  the  left bracket, then the range of charac‐
44                     ters within the brackets is complemented (that is,
45                     anything except the characters inside the brackets
46                     is considered a match).
47
48              (Be sure to quote any character that might  otherwise  be
49              interpreted or modified by the operating system.)
50
51       [-x xfile(s)]
52              An  optional  list of archive members to be excluded from
53              processing.  Since wildcard  characters  match  directory
54              separators  (`/'), this option may be used to exclude any
55              files that are in subdirectories.  For example, ``zipgrep
56              grumpy  foo  *.[ch]  -x */*'' would search for the string
57              ``grumpy'' in all C source files in the main directory of
58              the  ``foo''  archive,  but  none  in any subdirectories.
59              Without the -x option, all C source files in all directo‐
60              ries within the zipfile would be searched.
61

OPTIONS

63       All  options  prior  to  the  ZIP archive filename are passed to
64       egrep(1).
65

SEE ALSO

67       egrep(1), unzip(1L),  zip(1L),  funzip(1L),  zipcloak(1L),  zip‐
68       info(1L), zipnote(1L), zipsplit(1L)
69

URL

71       The Info-ZIP home page is currently at
72       http://www.info-zip.org/pub/infozip/
73       or
74       ftp://ftp.info-zip.org/pub/infozip/ .
75

AUTHORS

77       zipgrep was written by Jean-loup Gailly.
78
79
80
81Info-ZIP                       28 February 2005                    ZIPGREP(1L)
Impressum