summaryrefslogtreecommitdiff
path: root/doc/grep.texi
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <bero@arklinux.org>2001-09-25 10:00:16 +0000
committerBernhard Rosenkraenzer <bero@arklinux.org>2001-09-25 10:00:16 +0000
commit24522a49a02c12d46b62ccfa520decf15849875b (patch)
treeacfbb78b3f6d8d08d2a41f18d36fa96ffe892ffe /doc/grep.texi
parent3a13dbb463e807494830ee268deb2f8c0bcc3432 (diff)
downloadgrep-24522a49a02c12d46b62ccfa520decf15849875b.tar.gz
- Fix pcre detection
- Add --color={always,never,tty} argument - Add --devices (analogous to --directories) - Don't enable blinking by default - Document changes * configure.in: Detect pcre correctly even when it's in non-standard locations, using pcre-config * src/grep.c: Add --color={always,never,tty} argument (like in ls) * src/grep.c: Turn off blinking in the default colorization * src/grep.c: Add --devices (-D) switch (analogous to --directories) * doc/grep.texi, doc/grep.1: Document changes (--color, --devices, -D)
Diffstat (limited to 'doc/grep.texi')
-rw-r--r--doc/grep.texi16
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/grep.texi b/doc/grep.texi
index 316c57c4..0e86ca39 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -261,11 +261,12 @@ Print @var{num} lines of leading context before matching lines.
@cindex context
Print @var{num} lines of output context.
-@item --colour
-@itemx --color
+@item --colour[=@var{WHEN}]
+@itemx --color[=@var{WHEN}]
@opindex --colour
@cindex highlight, color, colour
The matching string is surrounded by the marker specify in @var{GREP_COLOR}.
+@var{WHEN} may be `never', `always', or `auto'.
@item -@var{num}
@opindex -NUM
@@ -314,6 +315,17 @@ byte offsets
depend on whether the @samp{-u} (@samp{--unix-byte-offsets}) option is
used; see below.
+@item -D @var{action}
+@itemx --devices=@var{action}
+@opindex -D
+@opindex --devices
+@cindex device search
+If an input file is a device, FIFO or socket, use @var{action} to process it.
+By default, @var{action} is @samp{read}, which means that devices are
+read just as if they were ordinary files.
+If @var{action} is @samp{skip}, devices, FIFOs and sockets are silently
+skipped.
+
@item -d @var{action}
@itemx --directories=@var{action}
@opindex -d