mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-14 11:21:58 +02:00
doc: csplit: clarify [OFFSET] syntax
* src/csplit.c (usage): Clarify that '+' prefix is optional on OFFSET. * doc/coreutils.texi (csplit invocation): Likewise. Fixes https://bugs.gnu.org/53574
This commit is contained in:
@@ -3554,7 +3554,8 @@ file once for each repeat.
|
||||
@item /@var{regexp}/[@var{offset}]
|
||||
Create an output file containing the current line up to (but not
|
||||
including) the next line of the input file that contains a match for
|
||||
@var{regexp}. The optional @var{offset} is an integer.
|
||||
@var{regexp}. The optional @var{offset} is an integer, that can
|
||||
be preceded by @samp{+} or @samp{-}.
|
||||
If it is given, the input up to (but not including) the
|
||||
matching line plus or minus @var{offset} is put into the output file,
|
||||
and the line after that begins the next section of input.
|
||||
|
||||
@@ -1515,7 +1515,7 @@ Each PATTERN may be:\n\
|
||||
{INTEGER} repeat the previous pattern specified number of times\n\
|
||||
{*} repeat the previous pattern as many times as possible\n\
|
||||
\n\
|
||||
A line OFFSET is a required '+' or '-' followed by a positive integer.\n\
|
||||
A line OFFSET is an integer optionally preceded by '+' or '-'\n\
|
||||
"), stdout);
|
||||
emit_ancillary_info (PROGRAM_NAME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user