should include the actual patch and debian/changelog entry, too
[debian/gzip] / zgrep.1
1 .TH ZGREP 1
2 .SH NAME
3 zgrep \- search possibly compressed files for a regular expression
4 .SH SYNOPSIS
5 .B zgrep
6 [ grep_options ]
7 .BI  [\ -e\ ] " pattern"
8 .IR filename ".\|.\|."
9 .SH DESCRIPTION
10 .I Zgrep
11 invokes
12 .I grep
13 on compressed or gzipped files.
14 These
15 .I grep
16 options will cause
17 .I zgrep
18 to terminate with an error code:
19 .BI (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*) .
20 All other options specified are passed directly to
21 .IR grep .
22 If no file is specified, then the standard input is decompressed
23 if necessary and fed to grep.
24 Otherwise the given files are uncompressed if necessary and fed to
25 .IR grep .
26 .PP
27 If the GREP environment variable is set,
28 .I zgrep
29 uses it as the
30 .I grep
31 program to be invoked.
32 .SH EXIT CODE
33 2 - An option that is not supported was specified.
34 .SH AUTHOR
35 Charles Levert (charles@comm.polymtl.ca)
36 .SH "SEE ALSO"
37 grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)