File: zgrep.1

package info (click to toggle)
gzip 1.6-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,068 kB
  • ctags: 4,221
  • sloc: ansic: 32,146; sh: 8,072; makefile: 334; perl: 11
file content (37 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (2)
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
.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
.I Zgrep
invokes
.I grep
on compressed or gzipped files.
These
.I grep
options will cause
.I zgrep
to terminate with an error code:
.BI (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*) .
All other options specified are passed directly to
.IR 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
.IR grep .
.PP
If the GREP environment variable is set,
.I zgrep
uses it as the
.I grep
program to be invoked.
.SH EXIT CODE
2 - An option that is not supported was specified.
.SH AUTHOR
Charles Levert (charles@comm.polymtl.ca)
.SH "SEE ALSO"
grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)