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: Pádraig Brady
Subject: Re: Command-line program to convert 'human' sizes?
Date: Fri, 07 Dec 2012 10:06:37 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 12/07/2012 08:25 AM, Bernhard Voelker wrote:
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.

Yes I was going to get to descriptions and docs at the end.
But for above I'd probably 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? ;-)

Heh, given my amendment above no :)
I suppose you could think of numfmt as
a number validator in default mode?
It should probably also convert from 1,234 to 1234 also.

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

Yes, that's probably a bit easier on the eyes/fingers

thanks,
Pádraig.



reply via email to

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