X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=zgrep.1;h=dfcf21ef22592b1b45b83579a28bae01ff91f19a;hb=01af6d7cbc71345282dbe6cd6a2f88afc4badce0;hp=a52a88abcf802802bc4d1729bdba60c776e4af3b;hpb=302189d124ed5849c2589ea92e912eb24fdc4ab3;p=debian%2Fgzip diff --git a/zgrep.1 b/zgrep.1 index a52a88a..dfcf21e 100644 --- a/zgrep.1 +++ b/zgrep.1 @@ -7,38 +7,45 @@ zgrep \- search possibly compressed files for a regular expression .BI [\ -e\ ] " pattern" .IR filename ".\|.\|." .SH DESCRIPTION -.IR Zgrep -is used to invoke the +.I Zgrep +invokes .I grep -on compress'ed or gzip'ed files. All options specified are passed directly to -.I grep. +on compressed or gzipped files. +All options specified are passed directly to +.IR grep . 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. +.IR grep . .PP -If -.I zgrep -is invoked as -.I zegrep -or -.I zfgrep -then -.I egrep -or -.I fgrep -is used instead of -.I grep. If the GREP environment variable is set, .I zgrep uses it as the .I grep -program to be invoked. For example: - - for sh: GREP=fgrep zgrep string files - for csh: (setenv GREP fgrep; zgrep string files) +program to be invoked. +.SH "EXIT STATUS" +Exit status is 0 for a match, 1 for no matches, and 2 if trouble. +.SH BUGS +.PP +The following +.I grep +options are not supported: +.B --dereference-recursive +.RB ( \-R ), +.B --directories +.RB ( \-d ), +.BR --exclude , +.BR --exclude-from , +.BR --exclude-dir , +.BR --include , +.B --null +.RB ( \-Z ), +.B --null-data +.RB ( \-z ), +and +.B --recursive +.RB ( \-r ). .SH AUTHOR Charles Levert (charles@comm.polymtl.ca) .SH "SEE ALSO" -grep(1), egrep(1), fgrep(1), zdiff(1), zmore(1), znew(1), zforce(1), -gzip(1), gzexe(1) +grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)