man-pages/man1/zipgrep.1.html
2021-03-31 01:06:50 +01:00

130 lines
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of ZIPGREP</TITLE>
</HEAD><BODY>
<H1>ZIPGREP</H1>
Section: User Commands (1)<BR>Updated: 20 April 2009<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
zipgrep - search files in a ZIP archive for lines matching a pattern
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>zipgrep</B> [<B>egrep_options</B>] <I>pattern</I>
<I>file</I>[<I>.zip</I>] [<I>file(s)</I>&nbsp;...]
[<B>-x</B>&nbsp;<I>xfile(s)</I>&nbsp;...]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<I>zipgrep</I> will search files within a ZIP archive for lines matching
the given string or pattern. <I>zipgrep</I> is a shell script and requires
<I><A HREF="/cgi-bin/man/man2html?1+egrep">egrep</A></I>(1) and <I><A HREF="/cgi-bin/man/man2html?1+unzip">unzip</A></I>(1) to function. Its output is identical to
that of <I><A HREF="/cgi-bin/man/man2html?1+egrep">egrep</A></I>(1).
<A NAME="lbAE">&nbsp;</A>
<H2>ARGUMENTS</H2>
<DL COMPACT>
<DT id="1"><DT><I>pattern</I><DD>
<DD>
The pattern to be located within a ZIP archive. Any string or regular
expression accepted by <I><A HREF="/cgi-bin/man/man2html?1+egrep">egrep</A></I>(1) may be used.
<I>file</I>[<I>.zip</I>]
Path of the ZIP archive. (Wildcard expressions for the ZIP archive name are
not supported.) If the literal filename is not found, the suffix .zip
is appended. Note that self-extracting ZIP files are supported, as with any
other ZIP archive; just specify the .exe suffix (if any) explicitly.
<DT id="2">[<I>file(s)</I>]<DD>
An optional list of archive members to be processed, separated by spaces.
If no member files are specified, all members of the ZIP archive are searched.
Regular expressions (wildcards) may be used to match multiple members:
<DL COMPACT><DT id="3"><DD>
<DL COMPACT>
<DT id="4">*<DD>
matches a sequence of 0 or more characters
<DT id="5">?<DD>
matches exactly 1 character
<DT id="6">[...]<DD>
matches any single character found inside the brackets; ranges are specified
by a beginning character, a hyphen, and an ending character. If an exclamation
point or a caret (`!' or `^') follows the left bracket, then the range of
characters within the brackets is complemented (that is, anything <I>except</I>
the characters inside the brackets is considered a match).
</DL>
</DL>
<DT id="7"><DD>
(Be sure to quote any character that might otherwise be interpreted or
modified by the operating system.)
<DT id="8">[<B>-x</B>&nbsp;<I>xfile(s)</I>]<DD>
An optional list of archive members to be excluded from processing.
Since wildcard characters match directory separators (`/'), this option
may be used to exclude any files that are in subdirectories. For
example, ``zipgrep grumpy foo *.[ch] -x */*'' would search for the
string ``grumpy'' in all C source files in the main directory of the ``foo''
archive, but none in any subdirectories. Without the <B>-x</B>
option, all C source files in all directories within the zipfile would be
searched.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>OPTIONS</H2>
All options prior to the ZIP archive filename are passed to <I><A HREF="/cgi-bin/man/man2html?1+egrep">egrep</A></I>(1).
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<I><A HREF="/cgi-bin/man/man2html?1+egrep">egrep</A></I>(1), <I><A HREF="/cgi-bin/man/man2html?1+unzip">unzip</A></I>(1), <I><A HREF="/cgi-bin/man/man2html?1+zip">zip</A></I>(1), <I><A HREF="/cgi-bin/man/man2html?1+funzip">funzip</A></I>(1),
<I><A HREF="/cgi-bin/man/man2html?1+zipcloak">zipcloak</A></I>(1), <I><A HREF="/cgi-bin/man/man2html?1+zipinfo">zipinfo</A></I>(1), <I><A HREF="/cgi-bin/man/man2html?1+zipnote">zipnote</A></I>(1), <I><A HREF="/cgi-bin/man/man2html?1+zipsplit">zipsplit</A></I>(1)
<A NAME="lbAH">&nbsp;</A>
<H2>URL</H2>
The Info-ZIP home page is currently at
<A HREF="http://www.info-zip.org/pub/infozip/">http://www.info-zip.org/pub/infozip/</A>
or
<A HREF="ftp://ftp.info-zip.org/pub/infozip/">ftp://ftp.info-zip.org/pub/infozip/</A> .
<A NAME="lbAI">&nbsp;</A>
<H2>AUTHORS</H2>
<I>zipgrep</I> was written by Jean-loup Gailly.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="9"><A HREF="#lbAB">NAME</A><DD>
<DT id="10"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="11"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="12"><A HREF="#lbAE">ARGUMENTS</A><DD>
<DT id="13"><A HREF="#lbAF">OPTIONS</A><DD>
<DT id="14"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="15"><A HREF="#lbAH">URL</A><DD>
<DT id="16"><A HREF="#lbAI">AUTHORS</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:31 GMT, March 31, 2021
</BODY>
</HTML>