summaryrefslogtreecommitdiff
path: root/zgrep.1
diff options
context:
space:
mode:
authorJean-loup Gailly <jloup@chorus.fr>1993-06-16 15:31:53 +0000
committerJean-loup Gailly <jloup@chorus.fr>1993-06-16 15:31:53 +0000
commit02eceea5500e477274fbbba9f63dfe4d8b2e053c (patch)
tree115e1d184ab549d7f6995668c8a52193214e8949 /zgrep.1
parent194b792dfd1bc804a33a6d6c6158320d78de70ca (diff)
downloadgzip-02eceea5500e477274fbbba9f63dfe4d8b2e053c.tar.gz
Initial revision
Diffstat (limited to 'zgrep.1')
-rw-r--r--zgrep.144
1 files changed, 44 insertions, 0 deletions
diff --git a/zgrep.1 b/zgrep.1
new file mode 100644
index 0000000..a52a88a
--- /dev/null
+++ b/zgrep.1
@@ -0,0 +1,44 @@
+.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
+.IR Zgrep
+is used to invoke the
+.I grep
+on compress'ed or gzip'ed files. All options specified are passed directly to
+.I 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
+.I grep.
+.PP
+If
+.I zgrep
+is invoked as
+.I zegrep
+or
+.I zfgrep
+then
+.I egrep
+or
+.I fgrep
+is used instead of
+.I grep.
+If the GREP environment variable is set,
+.I zgrep
+uses it as the
+.I grep
+program to be invoked. For example:
+
+ for sh: GREP=fgrep zgrep string files
+ for csh: (setenv GREP fgrep; zgrep string files)
+.SH AUTHOR
+Charles Levert (charles@comm.polymtl.ca)
+.SH "SEE ALSO"
+grep(1), egrep(1), fgrep(1), zdiff(1), zmore(1), znew(1), zforce(1),
+gzip(1), gzexe(1)