I was surprised that the "N" options of dd also accept a multiplier suffix, e.g. "count=10M". The following patch documents it.
Have a nice day, Berny >From 6e683c1273c2f6da2cdb74e3d6e8ee3cbd2236ed Mon Sep 17 00:00:00 2001 From: Bernhard Voelker <[email protected]> Date: Thu, 21 Jun 2012 13:03:41 +0200 Subject: [PATCH] dd: document multiplier for number options like count=N * src/dd.c (usage): Add "N" to the description of multipliers. * doc/coreutils.texi (dd invocation): Likewise. --- doc/coreutils.texi | 4 ++-- src/dd.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index f7251b2..08ef2d8 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8399,8 +8399,8 @@ affected file descriptors, even after @command{dd} exits. @end table @cindex multipliers after numbers -The numeric-valued strings above (@var{bytes} and @var{blocks}) can be -followed by a multiplier: @samp{b}=512, @samp{c}=1, +The numeric-valued strings above (@var{n}, @var{bytes} and @var{blocks}) +can be followed by a multiplier: @samp{b}=512, @samp{c}=1, @samp{w}=2, @samp{x@var{m}}=@var{m}, or any of the standard block size suffixes like @samp{k}=1024 (@pxref{Block size}). diff --git a/src/dd.c b/src/dd.c index 163d514..f86deb5 100644 --- a/src/dd.c +++ b/src/dd.c @@ -540,7 +540,7 @@ Copy a file, converting and formatting according to the operands.\n\ "), stdout); fputs (_("\ \n\ -BLOCKS and BYTES may be followed by the following multiplicative suffixes:\n\ +N, BLOCKS and BYTES may be followed by the following multiplicative suffixes:\n\ c =1, w =2, b =512, kB =1000, K =1024, MB =1000*1000, M =1024*1024, xM =M\n\ GB =1000*1000*1000, G =1024*1024*1024, and so on for T, P, E, Z, Y.\n\ \n\ -- 1.7.7
