summaryrefslogtreecommitdiff
path: root/zgrep.1
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-02-05 20:54:25 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2007-02-05 20:54:25 +0000
commite24e0fedb97d741ef5ef34a2c38807ef4dd5bf57 (patch)
tree8d7657394a27b86d1458977ba029e801e60261bb /zgrep.1
parent2d97657ee315734d908e9008cb9843755bfbc88b (diff)
downloadgzip-e24e0fedb97d741ef5ef34a2c38807ef4dd5bf57.tar.gz
* gunzip.in, zcat.in, zcmp.in, zegrep.in, zfgrep.in: New files.
* Makefile.am (EXTRA_DIST): Add them. (bin_SCRIPTS, MOSTLYCLEANFILES): Add gunzip, zcat, zcmp, zdgrep, zfgrep. (.in): Use GZIP_BINDIR as the location of gzip binaries, if it is set. (check-local): Use GZIP_BINDIR. (install-exec-hook, remove-installed-links): Make 'uncompress' an alias for gunzip. * gzexe.1: At least one arg is required. Don't give cat as an example, since gzexe refuses to compress cat due to a bootstrapping issue. List more utilities in this category. * gzexe.in, zdiff.in, zforce.in, zgrep.in, zless.in, zmore.in, znew.in: Report our name in usage. * gzexe.in: Don't compress bash. Don't use rmdir, so it's OK to compress rmdir. * gzip.c: Now requires that you compile with -DGNU_STANDARD=0 to get non GNU-standard behavior. We now build with GNU-standard behavior by default, so that programs do not depend on the names of their executables. * zdiff.in: Don't depend on the name of the executable, as per GNU standard. Instead, rely on an internal --__cmp option. Support ' in options. Check for failures in subsidiary gzip invocations. * zgrep.1: Clarify compression issues. * zgrep.in: Don't assume POSIX-style case syntax. Remove unused var have_optarg. * zless.1: zless sets LESSMETACHARS now.
Diffstat (limited to 'zgrep.1')
-rw-r--r--zgrep.131
1 files changed, 8 insertions, 23 deletions
diff --git a/zgrep.1 b/zgrep.1
index a52a88a..ef37bd8 100644
--- a/zgrep.1
+++ b/zgrep.1
@@ -7,38 +7,23 @@ zgrep \- search possibly compressed files for a regular expression
.BI [\ -e\ ] " pattern"
.IR filename ".\|.\|."
.SH DESCRIPTION
-.IR Zgrep
-is used to invoke the
+.I Zgrep
+invokes
.I grep
-on compress'ed or gzip'ed files. All options specified are passed directly to
-.I grep.
+on compressed or gzipped files.
+All 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
-.I grep.
+.IR 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)
+program to be invoked.
.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)
+grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)