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