1ZGREP(1) General Commands Manual ZGREP(1)
2
3
4
6 zgrep - search possibly compressed files for a regular expression
7
9 zgrep [ grep_options ] [ -e ] pattern filename...
10
12 Zgrep invokes grep on compressed or gzipped files. All options speci‐
13 fied are passed directly to grep. If no file is specified, then the
14 standard input is decompressed if necessary and fed to grep. Otherwise
15 the given files are uncompressed if necessary and fed to grep.
16
17 If the GREP environment variable is set, zgrep uses it as the grep pro‐
18 gram to be invoked.
19
21 Exit status is 0 for a match, 1 for no matches, and 2 if trouble.
22
24 The following grep options are not supported: --dereference-recursive
25 (-R), --directories (-d), --exclude, --exclude-from, --exclude-dir,
26 --include, --null (-Z), --null-data (-z), and --recursive (-r).
27
29 Charles Levert (charles@comm.polymtl.ca)
30
32 grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)
33
34
35
36 ZGREP(1)