Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0
On 09/25/2012 12:54 PM, Karel Zak wrote:
> On Fri, Sep 21, 2012 at 04:51:56AM +0200, Bernhard Voelker wrote:
>> Finally, I made it the whole long way to df's new --output option.
>> Example use:
>>
>> $ src/df --o=target,ipcent,pcent .
>> Mounted on IUse% Use%
>> /media/sdb5 5% 75%
>
> BTW, for new utils (lsblk, findmnt) in util-linux we also support
>
> -o +<column>
>
> convention to add <column> to the default output, for example
>
> findmnt -o=+SIZE
Hi Karel,
thanks for the suggestion.
The idea was to bring the basic support for variable output
into df first, and then I think the way is open for further
discussions. E.g. handling different scale factors for the
columns may be interesting - something like this:
df --output=target,used/1M,iused/1K
I'm not sure if df should go any further this way, as such
processing is usually up to the caller.
We'll see.
Have a nice day,
Berny