2013-07-09 09:35:39 +00:00
|
|
|
diff --git a/doc/grep.in.1 b/doc/grep.in.1
|
2019-04-10 09:13:55 +00:00
|
|
|
index 9d0d494..735b462 100644
|
2013-07-09 09:35:39 +00:00
|
|
|
--- a/doc/grep.in.1
|
|
|
|
+++ b/doc/grep.in.1
|
2019-04-10 09:13:55 +00:00
|
|
|
@@ -451,7 +451,7 @@ Print
|
2013-07-09 09:35:39 +00:00
|
|
|
.I NUM
|
|
|
|
lines of trailing context after matching lines.
|
|
|
|
Places a line containing a group separator
|
|
|
|
-.RB ( \-\^\- )
|
|
|
|
+.RB "(described under " \-\^\-group\-separator )
|
|
|
|
between contiguous groups of matches.
|
|
|
|
With the
|
|
|
|
.B \-o
|
2019-04-10 09:13:55 +00:00
|
|
|
@@ -464,7 +464,7 @@ Print
|
2013-07-09 09:35:39 +00:00
|
|
|
.I NUM
|
|
|
|
lines of leading context before matching lines.
|
|
|
|
Places a line containing a group separator
|
|
|
|
-.RB ( \-\^\- )
|
|
|
|
+.RB "(described under " \-\^\-group\-separator )
|
|
|
|
between contiguous groups of matches.
|
|
|
|
With the
|
|
|
|
.B \-o
|
2019-04-10 09:13:55 +00:00
|
|
|
@@ -477,13 +477,24 @@ Print
|
2013-07-09 09:35:39 +00:00
|
|
|
.I NUM
|
|
|
|
lines of output context.
|
|
|
|
Places a line containing a group separator
|
|
|
|
-.RB ( \-\^\- )
|
|
|
|
+.RB "(described under " \-\^\-group\-separator )
|
|
|
|
between contiguous groups of matches.
|
|
|
|
With the
|
|
|
|
.B \-o
|
|
|
|
or
|
|
|
|
.B \-\^\-only\-matching
|
|
|
|
option, this has no effect and a warning is given.
|
|
|
|
+.TP
|
|
|
|
+.BI \-\^\-group\-separator= SEP
|
|
|
|
+Use
|
|
|
|
+.I SEP
|
|
|
|
+as a group separator. By default
|
|
|
|
+.I SEP
|
|
|
|
+is double hyphen
|
|
|
|
+.RB ( \-\^\- ).
|
|
|
|
+.TP
|
|
|
|
+.B \-\^\-no\-group-separator
|
|
|
|
+Use empty string as a group separator.
|
|
|
|
.SS "File and Directory Selection"
|
|
|
|
.TP
|
|
|
|
.BR \-a ", " \-\^\-text
|
2014-05-23 10:22:32 +00:00
|
|
|
diff --git a/src/grep.c b/src/grep.c
|
2019-04-10 09:13:55 +00:00
|
|
|
index 9fb5e92..5b05969 100644
|
2014-05-23 10:22:32 +00:00
|
|
|
--- a/src/grep.c
|
|
|
|
+++ b/src/grep.c
|
2017-07-03 09:40:34 +00:00
|
|
|
@@ -1986,6 +1986,8 @@ Context control:\n\
|
2013-07-09 09:35:39 +00:00
|
|
|
"));
|
|
|
|
printf (_("\
|
|
|
|
-NUM same as --context=NUM\n\
|
|
|
|
+ --group-separator=SEP use SEP as a group separator\n\
|
|
|
|
+ --no-group-separator use empty string as a group separator\n\
|
|
|
|
--color[=WHEN],\n\
|
|
|
|
--colour[=WHEN] use markers to highlight the matching strings;\n\
|
|
|
|
WHEN is 'always', 'never', or 'auto'\n\
|