]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Improve the descriptions of the split command options.
authorPádraig Brady <P@draigBrady.com>
Wed, 21 Nov 2007 19:45:51 +0000 (20:45 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 21 Nov 2007 20:07:50 +0000 (21:07 +0100)
* doc/coreutils.texi (split invocation):

ChangeLog
doc/coreutils.texi

index de028c77f56a411f53edac63ff8c49ca3277f4cd..62f1f2212bc83831b5c8302de06aa6b40eae78e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-21  Pádraig Brady <P@draigBrady.com>
+
+       * doc/coreutils.texi (split invocation): Improve the
+       descriptions of the split command options.
+
 2007-11-21  Jim Meyering  <meyering@redhat.com>
 
        * src/c99-to-c89.diff: Adjust seq.c offsets.
index a73329222670f0ca31335a9345f97c1ca4e1fb6d..136a3f7fa920515cdfa273cffd021460e29da188 100644 (file)
@@ -2789,12 +2789,6 @@ The program accepts the following options.  Also see @ref{Common options}.
 
 @table @samp
 
-@item -a @var{length}
-@itemx --suffix-length=@var{length}
-@opindex -a
-@opindex --suffix-length
-Use suffixes of length @var{length}.  The default @var{length} is 2.
-
 @item -l @var{lines}
 @itemx --lines=@var{lines}
 @opindex -l
@@ -2805,27 +2799,36 @@ For compatibility @command{split} also supports an obsolete
 option syntax @option{-@var{lines}}.  New scripts should use @option{-l
 @var{lines}} instead.
 
-@item -b @var{bytes}
-@itemx --bytes=@var{bytes}
+@item -b @var{size}
+@itemx --bytes=@var{size}
 @opindex -b
 @opindex --bytes
-Put the first @var{bytes} bytes of @var{input} into each output file.
-Appending @samp{b} multiplies @var{bytes} by 512,
-@samp{kB} by 1000, @samp{K} by 1024,
-@samp{MB} by 1000*1000, @samp{M} by 1024*1024,
-@samp{GB} by 1000*1000*1000, @samp{GB} by 1024*1024*1024,
-and so on for @samp{T}, @samp{P}, @samp{E}, @samp{Z}, and @samp{Y}.
+Put @var{size} bytes of @var{input} into each output file.
+@var{size} is a number which may be followed by one of these
+multiplicative suffixes:
+@example
+@samp{b}  =>       512 ("blocks")
+@samp{KB} =>      1000 (KiloBytes)
+@samp{K}  =>      1024 (KibiBytes)
+@samp{MB} => 1000*1000 (MegaBytes)
+@samp{M}  => 1024*1024 (MebiBytes)
+@end example
+and so on for @samp{G}, @samp{T}, @samp{P}, @samp{E}, @samp{Z}, and @samp{Y}.
 
-@item -C @var{bytes}
-@itemx --line-bytes=@var{bytes}
+@item -C @var{size}
+@itemx --line-bytes=@var{size}
 @opindex -C
 @opindex --line-bytes
 Put into each output file as many complete lines of @var{input} as
-possible without exceeding @var{bytes} bytes.  For lines longer than
-@var{bytes} bytes, put @var{bytes} bytes into each output file until
-less than @var{bytes} bytes of the line are left, then continue
-normally.  @var{bytes} has the same format as for the @option{--bytes}
-option.
+possible without exceeding @var{size} bytes.  Individual lines longer than
+@var{size} bytes are broken into multiple files.
+@var{size} has the same format as for the @option{--bytes} option.
+
+@item -a @var{length}
+@itemx --suffix-length=@var{length}
+@opindex -a
+@opindex --suffix-length
+Use suffixes of length @var{length}.  The default @var{length} is 2.
 
 @item -d
 @itemx --numeric-suffixes