coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] df: add --without-header option


From: Bernhard Voelker
Subject: Re: [PATCH] df: add --without-header option
Date: Sun, 09 Dec 2012 18:03:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 12/09/2012 01:02 PM, Pádraig Brady wrote:
> On 12/08/2012 08:18 PM, Bernhard Voelker wrote:
>> I wondered if it would be useful in some cases
>> to suppress the header line in df.
>>
>> Looking at the already-used options and how they start,
>> I took "--without-header" which can be abbreviated by
>> "--w". WDYT?
> 
> Thanks for the patch.
> 
> It's easy to implement/add but I'm 60:40 against doing so because,
> it's not often needed with df. If it is needed then
> one can always tail -n+2, which while a bit more inefficient
> in the general case as a data copy is involved between two processes,
> with the amount of data typically output from df, this isn't
> a practical concern.

Thanks, thinking about it, you're right - even the test
showed that skipping the header is easy:
  $ df | sed 1d

Have a nice day,
Berny



reply via email to

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