|
|
cf483b |
diff --git a/doc/grep.in.1 b/doc/grep.in.1
|
|
|
cf483b |
index f2d4362..f3e416b 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
|
|
|
cf483b |
diff --git a/src/main.c b/src/main.c
|
|
|
cf483b |
index e3b5186..145d6a1 100644
|
|
|
cf483b |
--- a/src/main.c
|
|
|
cf483b |
+++ b/src/main.c
|
|
|
cf483b |
@@ -1613,6 +1613,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\
|