|
|
cf483b |
diff --git a/doc/grep.in.1 b/doc/grep.in.1
|
|
|
b35d5f |
index 58a6c0e..3e6a8cf 100644
|
|
|
cf483b |
--- a/doc/grep.in.1
|
|
|
cf483b |
+++ b/doc/grep.in.1
|
|
|
cf483b |
@@ -377,7 +377,7 @@ Print
|
|
|
cf483b |
.I NUM
|
|
|
cf483b |
lines of trailing context after matching lines.
|
|
|
cf483b |
Places a line containing a group separator
|
|
|
cf483b |
-.RB ( \-\^\- )
|
|
|
cf483b |
+.RB "(described under " \-\^\-group\-separator )
|
|
|
cf483b |
between contiguous groups of matches.
|
|
|
cf483b |
With the
|
|
|
cf483b |
.B \-o
|
|
|
cf483b |
@@ -390,7 +390,7 @@ Print
|
|
|
cf483b |
.I NUM
|
|
|
cf483b |
lines of leading context before matching lines.
|
|
|
cf483b |
Places a line containing a group separator
|
|
|
cf483b |
-.RB ( \-\^\- )
|
|
|
cf483b |
+.RB "(described under " \-\^\-group\-separator )
|
|
|
cf483b |
between contiguous groups of matches.
|
|
|
cf483b |
With the
|
|
|
cf483b |
.B \-o
|
|
|
cf483b |
@@ -403,13 +403,24 @@ Print
|
|
|
cf483b |
.I NUM
|
|
|
cf483b |
lines of output context.
|
|
|
cf483b |
Places a line containing a group separator
|
|
|
cf483b |
-.RB ( \-\^\- )
|
|
|
cf483b |
+.RB "(described under " \-\^\-group\-separator )
|
|
|
cf483b |
between contiguous groups of matches.
|
|
|
cf483b |
With the
|
|
|
cf483b |
.B \-o
|
|
|
cf483b |
or
|
|
|
cf483b |
.B \-\^\-only\-matching
|
|
|
cf483b |
option, this has no effect and a warning is given.
|
|
|
cf483b |
+.TP
|
|
|
cf483b |
+.BI \-\^\-group\-separator= SEP
|
|
|
cf483b |
+Use
|
|
|
cf483b |
+.I SEP
|
|
|
cf483b |
+as a group separator. By default
|
|
|
cf483b |
+.I SEP
|
|
|
cf483b |
+is double hyphen
|
|
|
cf483b |
+.RB ( \-\^\- ).
|
|
|
cf483b |
+.TP
|
|
|
cf483b |
+.B \-\^\-no\-group-separator
|
|
|
cf483b |
+Use empty string as a group separator.
|
|
|
cf483b |
.SS "File and Directory Selection"
|
|
|
cf483b |
.TP
|
|
|
cf483b |
.BR \-a ", " \-\^\-text
|
|
|
b35d5f |
diff --git a/src/grep.c b/src/grep.c
|
|
|
b35d5f |
index 7c0f8a8..0fcc272 100644
|
|
|
b35d5f |
--- a/src/grep.c
|
|
|
b35d5f |
+++ b/src/grep.c
|
|
|
b35d5f |
@@ -1602,6 +1602,8 @@ Context control:\n\
|
|
|
cf483b |
"));
|
|
|
cf483b |
printf (_("\
|
|
|
cf483b |
-NUM same as --context=NUM\n\
|
|
|
cf483b |
+ --group-separator=SEP use SEP as a group separator\n\
|
|
|
cf483b |
+ --no-group-separator use empty string as a group separator\n\
|
|
|
cf483b |
--color[=WHEN],\n\
|
|
|
cf483b |
--colour[=WHEN] use markers to highlight the matching strings;\n\
|
|
|
cf483b |
WHEN is 'always', 'never', or 'auto'\n\
|