version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
ZIPGREP |
|
|
2 |
!!!ZIPGREP |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
ARGUMENTS |
|
|
7 |
OPTIONS |
|
|
8 |
SEE ALSO |
|
|
9 |
URL |
|
|
10 |
AUTHORS |
|
|
11 |
---- |
|
|
12 |
!!NAME |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
zipgrep - search files in a ZIP archive for lines matching a pattern |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__zipgrep__ [[__egrep_options__] ''pattern |
|
|
20 |
file''[[''.zip''] [[''file(s)'' ...] [[__-x__ |
|
|
21 |
''xfile(s)'' ...] |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
''zipgrep'' will search files within a ZIP archive for |
|
|
26 |
lines matching the given string or pattern. ''zipgrep'' |
|
|
27 |
is a shell script and requires egrep(1) and |
|
|
28 |
''unzip''(1L) to function. Its output is identical to |
|
|
29 |
that of egrep(1). |
|
|
30 |
!!ARGUMENTS |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
''pattern'' |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
The pattern to be located within a ZIP archive. Any string |
|
|
37 |
or regular expression accepted by egrep(1) may be |
|
|
38 |
used. ''file''[[''.zip''] Path of the ZIP archive. |
|
|
39 |
(Wildcard expressions for the ZIP archive name are not |
|
|
40 |
supported.) If the literal filename is not found, the suffix |
|
|
41 |
.zip is appended. Note that self-extracting ZIP |
|
|
42 |
files are supported, as with any other ZIP archive; just |
|
|
43 |
specify the .exe suffix (if any) |
|
|
44 |
explicitly. |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
[[''file(s)''] |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
An optional list of archive members to be processed, |
|
|
51 |
separated by spaces. If no member files are specified, all |
|
|
52 |
members of the ZIP archive are searched. Regular expressions |
|
|
53 |
(wildcards) may be used to match multiple |
|
|
54 |
members: |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
* |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
matches a sequence of 0 or more characters |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
? |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
matches exactly 1 character |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
[[...] |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
matches any single character found inside the brackets; |
|
|
73 |
ranges are specified by a beginning character, a hyphen, and |
|
|
74 |
an ending character. If an exclamation point or a caret (`!' |
|
|
75 |
or `^') follows the left bracket, then the range of |
|
|
76 |
characters within the brackets is complemented (that is, |
|
|
77 |
anything ''except'' the characters inside the brackets is |
|
|
78 |
considered a match). |
|
|
79 |
|
|
|
80 |
|
|
|
81 |
(Be sure to quote any character that might otherwise be |
|
|
82 |
interpreted or modified by the operating |
|
|
83 |
system.) |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
[[__-x__ ''xfile(s)''] |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
An optional list of archive members to be excluded from |
|
|
90 |
processing. Since wildcard characters match directory |
|
|
91 |
separators (`/'), this option may be used to exclude any |
|
|
92 |
files that are in subdirectories. For example, ``zipgrep |
|
|
93 |
grumpy foo *.[[ch] -x */*'' would search for the string |
|
|
94 |
``grumpy'' in all C source files in the main directory of |
|
|
95 |
the ``foo'' archive, but none in any subdirectories. Without |
|
|
96 |
the __-x__ option, all C source files in all directories |
|
|
97 |
within the zipfile would be searched. |
|
|
98 |
!!OPTIONS |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
All options prior to the ZIP archive filename are passed to |
|
|
102 |
egrep(1). |
|
|
103 |
!!SEE ALSO |
|
|
104 |
|
|
|
105 |
|
|
|
106 |
egrep(1), ''unzip''(1L), ''zip''(1L), |
|
|
107 |
''funzip''(1L), ''zipcloak''(1L), ''zipinfo''(1L), |
|
|
108 |
''zipnote''(1L), ''zipsplit''(1L) |
|
|
109 |
!!URL |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
The Info-ZIP home page is currently at |
|
|
113 |
http://www.info-zip.org/pub/infozip/ or |
|
|
114 |
ftp://ftp.info-zip.org/pub/infozip/ . |
|
|
115 |
!!AUTHORS |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
''zipgrep'' was written by Jean-loup Gailly. |
|
|
119 |
---- |