maint: update bootstrap and m4/.gitignore to latest Gnulib
[gzip.git] / zgrep.1
blob4daaab9c22be182ce57ad1433e5fbdcb451f4386
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 The
11 .B zgrep
12 command invokes
13 .B grep
14 on compressed or gzipped files.
15 All options specified are passed directly to
16 .BR grep .
17 If no file is specified, then the standard input is decompressed
18 if necessary and fed to grep.
19 Otherwise the given files are uncompressed if necessary and fed to
20 .BR grep .
21 .PP
22 If the GREP environment variable is set,
23 .B zgrep
24 uses it as the
25 .B grep
26 program to be invoked.
27 .SH "EXIT STATUS"
28 Exit status is 0 for a match, 1 for no matches, and 2 if trouble.
29 .SH BUGS
30 .PP
31 The following
32 .B grep
33 options are not supported:
34 .B --dereference-recursive
35 .RB ( \-R ),
36 .B --directories
37 .RB ( \-d ),
38 .BR --exclude ,
39 .BR --exclude-from ,
40 .BR --exclude-dir ,
41 .BR --include ,
42 .B --null
43 .RB ( \-Z ),
44 .B --null-data
45 .RB ( \-z ),
46 and
47 .B --recursive
48 .RB ( \-r ).
49 .SH AUTHOR
50 Charles Levert (charles@comm.polymtl.ca)
51 .SH "SEE ALSO"
52 .BR grep (1),
53 .BR gzexe (1),
54 .BR gzip (1),
55 .BR zdiff (1),
56 .BR zforce (1),
57 .BR zmore (1),
58 .BR znew (1)