|
| From: | Pádraig Brady |
| Subject: | Re: Enhancements request – Accuracy, Documentation, Conventions, Basic units of measure |
| Date: | Fri, 25 May 2018 19:46:24 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 25/05/18 01:07, Ricky Tigg wrote:
> –Issue reported first at bugzilla.red hat 1582165
> <https://bugzilla.redhat.com/show_bug.cgi?id=1582165>–
>
> OS :Fedora
> Version-Release number of component: coreutils.x86_64 8.29-6.fc28 @updates
>
> 1. Accuracy
>
> Actual results: In terminal, outputs resulting from the execution of
> command:
> – 'df -h' are specified at best with one digit accuracy.
>
> Enhancement: An accuracy with two digits (model 0.00 M) would be
> appropriate.
Note there are many ways to format numbers,
for various situations and preferences.
To this end we've consolidated that functionality
to a single utility called numfmt. So you could for example:
df() {
env df -B1 | numfmt --header --field=2-4 --to=iec --format %.2f
}
cheers,
Pádraig
| [Prev in Thread] | Current Thread | [Next in Thread] |