[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: human-readable / block-size as a general utility?
From: |
Pádraig Brady |
Subject: |
Re: human-readable / block-size as a general utility? |
Date: |
Thu, 18 Aug 2011 15:00:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 |
On 08/18/2011 04:41 AM, Aaron Davies wrote:
> is there a way to access the -h functionality of du/df/ls as a general
> utility?
>
> i'd like to write a wrapper for a badly-behaved quota tool that only
> uses 1K blocks
That might be quite useful.
Someone told me recently that `wc -h` would be
very useful to them, and I said something more
general would be even better.
Perhaps a printf format spec?
%h is available, but it's probably best
go with something a bit more future proof.
Perhaps %{human} ?
cheers,
Pádraig.