1*5a645f22SBen Gras.\" $NetBSD: zgrep.1,v 1.3 2008/05/08 15:35:23 wiz Exp $ 2*5a645f22SBen Gras.\" 3*5a645f22SBen Gras.\" Copyright (c) 2003 Thomas Klausner. 4*5a645f22SBen Gras.\" 5*5a645f22SBen Gras.\" Redistribution and use in source and binary forms, with or without 6*5a645f22SBen Gras.\" modification, are permitted provided that the following conditions 7*5a645f22SBen Gras.\" are met: 8*5a645f22SBen Gras.\" 1. Redistributions of source code must retain the above copyright 9*5a645f22SBen Gras.\" notice, this list of conditions and the following disclaimer. 10*5a645f22SBen Gras.\" 2. Redistributions in binary form must reproduce the above copyright 11*5a645f22SBen Gras.\" notice, this list of conditions and the following disclaimer in the 12*5a645f22SBen Gras.\" documentation and/or other materials provided with the distribution. 13*5a645f22SBen Gras.\" 14*5a645f22SBen Gras.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15*5a645f22SBen Gras.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16*5a645f22SBen Gras.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17*5a645f22SBen Gras.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18*5a645f22SBen Gras.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19*5a645f22SBen Gras.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20*5a645f22SBen Gras.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21*5a645f22SBen Gras.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22*5a645f22SBen Gras.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23*5a645f22SBen Gras.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24*5a645f22SBen Gras.Dd December 28, 2003 25*5a645f22SBen Gras.Dt ZGREP 1 26*5a645f22SBen Gras.Os 27*5a645f22SBen Gras.Sh NAME 28*5a645f22SBen Gras.Nm zgrep , 29*5a645f22SBen Gras.Nm zegrep , 30*5a645f22SBen Gras.Nm zfgrep 31*5a645f22SBen Gras.Nd print lines matching a pattern in gzip-compressed files 32*5a645f22SBen Gras.Sh SYNOPSIS 33*5a645f22SBen Gras.Nm 34*5a645f22SBen Gras.Op Ar grep-flags 35*5a645f22SBen Gras.Op Fl - 36*5a645f22SBen Gras.Ar pattern 37*5a645f22SBen Gras.Op Ar files ... 38*5a645f22SBen Gras.Pp 39*5a645f22SBen Gras.Nm zegrep 40*5a645f22SBen Gras.Op Ar grep-flags 41*5a645f22SBen Gras.Op Fl - 42*5a645f22SBen Gras.Ar pattern 43*5a645f22SBen Gras.Op Ar 44*5a645f22SBen Gras.Pp 45*5a645f22SBen Gras.Nm zfgrep 46*5a645f22SBen Gras.Op Ar grep-flags 47*5a645f22SBen Gras.Op Fl - 48*5a645f22SBen Gras.Ar pattern 49*5a645f22SBen Gras.Op Ar 50*5a645f22SBen Gras.Sh DESCRIPTION 51*5a645f22SBen Gras.Nm 52*5a645f22SBen Grasruns 53*5a645f22SBen Gras.Xr grep 1 54*5a645f22SBen Grason 55*5a645f22SBen Gras.Ar files 56*5a645f22SBen Grasor stdin, if no 57*5a645f22SBen Gras.Ar files 58*5a645f22SBen Grasargument is given, after decompressing them with 59*5a645f22SBen Gras.Xr zcat 1 . 60*5a645f22SBen Gras.Pp 61*5a645f22SBen GrasThe 62*5a645f22SBen Gras.Ar grep-flags 63*5a645f22SBen Grasand 64*5a645f22SBen Gras.Ar pattern 65*5a645f22SBen Grasarguments are passed on to 66*5a645f22SBen Gras.Xr grep 1 . 67*5a645f22SBen GrasIf an 68*5a645f22SBen Gras.Fl e 69*5a645f22SBen Grasflag is found in the 70*5a645f22SBen Gras.Ar grep-flags , 71*5a645f22SBen Gras.Nm 72*5a645f22SBen Graswill not look for a 73*5a645f22SBen Gras.Ar pattern 74*5a645f22SBen Grasargument. 75*5a645f22SBen Gras.Pp 76*5a645f22SBen Gras.Nm zegrep 77*5a645f22SBen Grascalls 78*5a645f22SBen Gras.Xr egrep 1 , 79*5a645f22SBen Graswhile 80*5a645f22SBen Gras.Nm zfgrep 81*5a645f22SBen Grascalls 82*5a645f22SBen Gras.Xr fgrep 1 . 83*5a645f22SBen Gras.Sh EXIT STATUS 84*5a645f22SBen GrasIn case of missing arguments or missing pattern, 85*5a645f22SBen Gras1 will be returned, otherwise 0. 86*5a645f22SBen Gras.Sh SEE ALSO 87*5a645f22SBen Gras.Xr egrep 1 , 88*5a645f22SBen Gras.Xr fgrep 1 , 89*5a645f22SBen Gras.Xr grep 1 , 90*5a645f22SBen Gras.Xr gzip 1 , 91*5a645f22SBen Gras.Xr zcat 1 92*5a645f22SBen Gras.Sh AUTHORS 93*5a645f22SBen Gras.An Thomas Klausner 94*5a645f22SBen Gras.Aq wiz@NetBSD.org 95