[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
- Re: Command-line program to convert 'human' sizes?, (continued)
- Re: Command-line program to convert 'human' sizes?, Pádraig Brady, 2012/12/04
- Re: Command-line program to convert 'human' sizes?, Assaf Gordon, 2012/12/05
- Re: Command-line program to convert 'human' sizes?, Assaf Gordon, 2012/12/05
- Re: Command-line program to convert 'human' sizes?, Jim Meyering, 2012/12/05
- Re: Command-line program to convert 'human' sizes?, Assaf Gordon, 2012/12/05
- Re: Command-line program to convert 'human' sizes?, Assaf Gordon, 2012/12/05
- Re: Command-line program to convert 'human' sizes?, Assaf Gordon, 2012/12/05
- Re: Command-line program to convert 'human' sizes?, Pádraig Brady, 2012/12/06
- Re: Command-line program to convert 'human' sizes?, Bernhard Voelker, 2012/12/06
- Re: Command-line program to convert 'human' sizes?, Pádraig Brady, 2012/12/06
- Re: Command-line program to convert 'human' sizes?,
Bernhard Voelker <=
- Re: Command-line program to convert 'human' sizes?, Pádraig Brady, 2012/12/07
- Re: Command-line program to convert 'human' sizes?, Bernhard Voelker, 2012/12/07
- Re: Command-line program to convert 'human' sizes?, Assaf Gordon, 2012/12/07
- Re: Command-line program to convert 'human' sizes?, Pádraig Brady, 2012/12/07