summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <bero@arklinux.org>2002-01-22 13:20:04 +0000
committerBernhard Rosenkraenzer <bero@arklinux.org>2002-01-22 13:20:04 +0000
commitadd14af43514257e5cc15ac10c7d91a3f6e233ac (patch)
treef2c33578d30dab52bb9cbcbf3a5d2579308a58f3 /doc
parent7ad3588ed18e2976c72364e337a5f584fffc6a76 (diff)
downloadgrep-add14af43514257e5cc15ac10c7d91a3f6e233ac.tar.gz
--label stuff
* doc/grep.texi, doc/grep.1, NEWS: Document --label * src/grep.c: Add --label, based on patch from Stepan Koltsov
Diffstat (limited to 'doc')
-rw-r--r--doc/grep.18
-rw-r--r--doc/grep.texi7
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/grep.1 b/doc/grep.1
index 3edc0ab4..a8320178 100644
--- a/doc/grep.1
+++ b/doc/grep.1
@@ -12,7 +12,7 @@
.de Id
.ds Dt \\$4
..
-.Id $Id: grep.1,v 1.22 2001/11/19 13:23:29 bero Exp $
+.Id $Id: grep.1,v 1.23 2002/01/22 13:20:04 bero Exp $
.TH GREP 1 \*(Dt "GNU Project"
.SH NAME
grep, egrep, fgrep \- print lines matching a pattern
@@ -296,6 +296,12 @@ within its input file.
Show only the part of a matching line that matches
.I PATTERN.
.TP
+.BI \-\^\-label= LABEL
+Displays input actually coming from standard input as input coming from file
+.I LABEL.
+This is especially useful for tools like zgrep, e.g.
+.B "gzip -cd foo.gz |grep --label=foo something"
+.TP
.BR \-\^\-line-buffering
Use line buffering, it can be a performance penality.
.TP
diff --git a/doc/grep.texi b/doc/grep.texi
index 4b39a94a..32b27c41 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -359,6 +359,13 @@ Suppress the prefixing of filenames on output when multiple files are searched.
@cindex line buffering
Set the line buffering policy, this can be a performance penality.
+@item --label=@var{LABEL}
+@opindex --label
+@cindex changing name of standard input
+Displays input actually coming from standard input as input coming from file
+@var{LABEL}. This is especially useful for tools like zgrep, e.g.
+@command{gzip -cd foo.gz |grep --label=foo something}
+
@item -L
@itemx --files-without-match
@opindex -L