]> git.cworth.org Git - gzip/blob - zgrep.1
Imported Upstream version 1.3.2
[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 .IR  Zgrep
11 is used to invoke the
12 .I grep
13 on compress'ed or gzip'ed files. All options specified are passed directly to
14 .I grep.
15 If no file is specified, then the standard input is decompressed
16 if necessary and fed to grep.
17 Otherwise the given files are uncompressed if necessary and fed to
18 .I grep.
19 .PP
20 If
21 .I zgrep
22 is invoked as
23 .I zegrep
24 or
25 .I zfgrep
26 then
27 .I egrep
28 or
29 .I fgrep
30 is used instead of
31 .I grep.
32 If the GREP environment variable is set,
33 .I zgrep
34 uses it as the
35 .I grep
36 program to be invoked. For example:
37
38     for sh:  GREP=fgrep  zgrep string files
39     for csh: (setenv GREP fgrep; zgrep string files)
40 .SH AUTHOR
41 Charles Levert (charles@comm.polymtl.ca)
42 .SH "SEE ALSO"
43 grep(1), egrep(1), fgrep(1), zdiff(1), zmore(1), znew(1), zforce(1),
44 gzip(1), gzexe(1)