-
Notifications
You must be signed in to change notification settings - Fork 0
/
zgrep.1
58 lines (58 loc) · 1.1 KB
/
zgrep.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.TH ZGREP 1
.SH NAME
zgrep \- search possibly compressed files for a regular expression
.SH SYNOPSIS
.B zgrep
[ grep_options ]
.BI [\ -e\ ] " pattern"
.IR filename ".\|.\|."
.SH DESCRIPTION
The
.B zgrep
command invokes
.B grep
on compressed or gzipped files.
All options specified are passed directly to
.BR 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
.BR grep .
.PP
If the GREP environment variable is set,
.B zgrep
uses it as the
.B grep
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
.B 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"
.BR grep (1),
.BR gzexe (1),
.BR gzip (1),
.BR zdiff (1),
.BR zforce (1),
.BR zmore (1),
.BR znew (1)