mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 11:16:16 +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}]
|
@item /@var{regexp}/[@var{offset}]
|
||||||
Create an output file containing the current line up to (but not
|
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
|
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
|
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,
|
matching line plus or minus @var{offset} is put into the output file,
|
||||||
and the line after that begins the next section of input.
|
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\
|
{INTEGER} repeat the previous pattern specified number of times\n\
|
||||||
{*} repeat the previous pattern as many times as possible\n\
|
{*} repeat the previous pattern as many times as possible\n\
|
||||||
\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);
|
"), stdout);
|
||||||
emit_ancillary_info (PROGRAM_NAME);
|
emit_ancillary_info (PROGRAM_NAME);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user