xref: /netbsd-src/usr.bin/gzip/zgrep.1 (revision c75bafc0055f863d4da2b8db544d36e8a81a6903)
1*c75bafc0Swiz.\" $NetBSD: zgrep.1,v 1.3 2008/05/08 15:35:23 wiz Exp $
26ac2a4f4Swiz.\"
36ac2a4f4Swiz.\" Copyright (c) 2003 Thomas Klausner.
46ac2a4f4Swiz.\"
56ac2a4f4Swiz.\" Redistribution and use in source and binary forms, with or without
66ac2a4f4Swiz.\" modification, are permitted provided that the following conditions
76ac2a4f4Swiz.\" are met:
86ac2a4f4Swiz.\" 1. Redistributions of source code must retain the above copyright
96ac2a4f4Swiz.\"    notice, this list of conditions and the following disclaimer.
106ac2a4f4Swiz.\" 2. Redistributions in binary form must reproduce the above copyright
116ac2a4f4Swiz.\"    notice, this list of conditions and the following disclaimer in the
126ac2a4f4Swiz.\"    documentation and/or other materials provided with the distribution.
136ac2a4f4Swiz.\"
146ac2a4f4Swiz.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
156ac2a4f4Swiz.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
166ac2a4f4Swiz.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
176ac2a4f4Swiz.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
186ac2a4f4Swiz.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
196ac2a4f4Swiz.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
206ac2a4f4Swiz.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
216ac2a4f4Swiz.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
226ac2a4f4Swiz.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
236ac2a4f4Swiz.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
246ac2a4f4Swiz.Dd December 28, 2003
256ac2a4f4Swiz.Dt ZGREP 1
266ac2a4f4Swiz.Os
276ac2a4f4Swiz.Sh NAME
286ac2a4f4Swiz.Nm zgrep ,
296ac2a4f4Swiz.Nm zegrep ,
306ac2a4f4Swiz.Nm zfgrep
316ac2a4f4Swiz.Nd print lines matching a pattern in gzip-compressed files
326ac2a4f4Swiz.Sh SYNOPSIS
336ac2a4f4Swiz.Nm
346ac2a4f4Swiz.Op Ar grep-flags
356ac2a4f4Swiz.Op Fl -
366ac2a4f4Swiz.Ar pattern
376ac2a4f4Swiz.Op Ar files ...
386ac2a4f4Swiz.Pp
396ac2a4f4Swiz.Nm zegrep
406ac2a4f4Swiz.Op Ar grep-flags
416ac2a4f4Swiz.Op Fl -
426ac2a4f4Swiz.Ar pattern
436ac2a4f4Swiz.Op Ar
446ac2a4f4Swiz.Pp
456ac2a4f4Swiz.Nm zfgrep
466ac2a4f4Swiz.Op Ar grep-flags
476ac2a4f4Swiz.Op Fl -
486ac2a4f4Swiz.Ar pattern
496ac2a4f4Swiz.Op Ar
506ac2a4f4Swiz.Sh DESCRIPTION
516ac2a4f4Swiz.Nm
526ac2a4f4Swizruns
536ac2a4f4Swiz.Xr grep 1
546ac2a4f4Swizon
556ac2a4f4Swiz.Ar files
566ac2a4f4Swizor stdin, if no
576ac2a4f4Swiz.Ar files
586ac2a4f4Swizargument is given, after decompressing them with
596ac2a4f4Swiz.Xr zcat 1 .
606ac2a4f4Swiz.Pp
616ac2a4f4SwizThe
626ac2a4f4Swiz.Ar grep-flags
636ac2a4f4Swizand
646ac2a4f4Swiz.Ar pattern
656ac2a4f4Swizarguments are passed on to
666ac2a4f4Swiz.Xr grep 1 .
676ac2a4f4SwizIf an
686ac2a4f4Swiz.Fl e
696ac2a4f4Swizflag is found in the
706ac2a4f4Swiz.Ar grep-flags ,
716ac2a4f4Swiz.Nm
726ac2a4f4Swizwill not look for a
736ac2a4f4Swiz.Ar pattern
746ac2a4f4Swizargument.
756ac2a4f4Swiz.Pp
766ac2a4f4Swiz.Nm zegrep
776ac2a4f4Swizcalls
786ac2a4f4Swiz.Xr egrep 1 ,
796ac2a4f4Swizwhile
806ac2a4f4Swiz.Nm zfgrep
816ac2a4f4Swizcalls
826ac2a4f4Swiz.Xr fgrep 1 .
83aa81fc09Swiz.Sh EXIT STATUS
846ac2a4f4SwizIn case of missing arguments or missing pattern,
856ac2a4f4Swiz1 will be returned, otherwise 0.
866ac2a4f4Swiz.Sh SEE ALSO
876ac2a4f4Swiz.Xr egrep 1 ,
886ac2a4f4Swiz.Xr fgrep 1 ,
896ac2a4f4Swiz.Xr grep 1 ,
906ac2a4f4Swiz.Xr gzip 1 ,
916ac2a4f4Swiz.Xr zcat 1
926ac2a4f4Swiz.Sh AUTHORS
936ac2a4f4Swiz.An Thomas Klausner
946ac2a4f4Swiz.Aq wiz@NetBSD.org
95