coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command-line program to convert 'human' sizes?


From: Bernhard Voelker
Subject: Re: Command-line program to convert 'human' sizes?
Date: Fri, 07 Dec 2012 09:25:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 12/07/2012 12:59 AM, Pádraig Brady wrote:
> So on to some initial observations...

Hi Assaf and Padraig,

numfmt claims itself (in --help):
  Reformats NUMBER(s) to/from human-readable values.

and in the first line in numfmt.c:
  Reformat numbers like 11505426432 to the more human-readable 11G

Therefore this is my first test:

  $ echo 11505426432 | src/numfmt
  11505426432

Hmm, shouldn't it converting that to a human-readable
number then? ;-)


Looking at scale_from_args: I'd favor lower-case arguments,
i.e. "si" and "iec" instead of "SI" and "IEC".
WDYT?

Have a nice day,
Berny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]