119 lines
2.5 KiB
HTML
119 lines
2.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ZGREP</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ZGREP</H1>
|
|
Section: User Commands (1)<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
zgrep - search possibly compressed files for a regular expression
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>zgrep</B>
|
|
|
|
[ grep_options ]
|
|
<B>[ -e ]</B><I> pattern</I>
|
|
|
|
<I>filename</I>...
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<I>Zgrep</I>
|
|
|
|
invokes
|
|
<I>grep</I>
|
|
|
|
on compressed or gzipped files.
|
|
All options specified are passed directly to
|
|
<I>grep</I>.
|
|
|
|
If no file is specified, then the standard input is decompressed
|
|
if necessary and fed to grep.
|
|
Otherwise the given files are uncompressed if necessary and fed to
|
|
<I>grep</I>.
|
|
|
|
<P>
|
|
|
|
If the GREP environment variable is set,
|
|
<I>zgrep</I>
|
|
|
|
uses it as the
|
|
<I>grep</I>
|
|
|
|
program to be invoked.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
Exit status is 0 for a match, 1 for no matches, and 2 if trouble.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
<P>
|
|
|
|
The following
|
|
<I>grep</I>
|
|
|
|
options are not supported:
|
|
<B>--dereference-recursive</B>
|
|
|
|
(<B>-R</B>),
|
|
|
|
<B>--directories</B>
|
|
|
|
(<B>-d</B>),
|
|
|
|
<B>--exclude</B>,
|
|
|
|
<B>--exclude-from</B>,
|
|
|
|
<B>--exclude-dir</B>,
|
|
|
|
<B>--include</B>,
|
|
|
|
<B>--null</B>
|
|
|
|
(<B>-Z</B>),
|
|
|
|
<B>--null-data</B>
|
|
|
|
(<B>-z</B>),
|
|
|
|
and
|
|
<B>--recursive</B>
|
|
|
|
(<B>-r</B>).
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Charles Levert (<A HREF="mailto:charles@comm.polymtl.ca">charles@comm.polymtl.ca</A>)
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+grep">grep</A>(1), <A HREF="/cgi-bin/man/man2html?1+gzexe">gzexe</A>(1), <A HREF="/cgi-bin/man/man2html?1+gzip">gzip</A>(1), <A HREF="/cgi-bin/man/man2html?1+zdiff">zdiff</A>(1), <A HREF="/cgi-bin/man/man2html?1+zforce">zforce</A>(1), <A HREF="/cgi-bin/man/man2html?1+zmore">zmore</A>(1), <A HREF="/cgi-bin/man/man2html?1+znew">znew</A>(1)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">EXIT STATUS</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">BUGS</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
<DT id="7"><A HREF="#lbAH">SEE ALSO</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>
|