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