On 10/11/2011 08:00 PM, Jakob Truelsen wrote:
> On Tue, Oct 11, 2011 at 4:55 PM, Voelker, Bernhard
> <bernhard.voel...@siemens-enterprise.com> wrote:
>>
>> Jakob Truelsen wrote:
>>
>>> On Tue, Oct 11, 2011 at 4:19 PM, Voelker, Bernhard
>>> <bernhard.voel...@siemens-enterprise.com> wrote:
>>>> Jakob Truelsen wrote:
>>>>
>>>>> I often find myself using sed to filter out only large entries in the
>>>>> output of du, this patch adds a --min-size option to du to do this in
>>>>> a more pratical way.
>>>>>
>>>>> commit 3ce873cddcd608a654750ffa67d070c1ce82b036
>>>>> Author: Jakob Truelsen <ja...@scalgo.com>
>>>>> Date:   Tue Oct 11 15:28:26 2011 +0200
>>>>>
>>>>>     Add min-size option to du to only show information about large 
>>>>> entities
>>>>
>>>> why not use e.g. find -size?
>>>
>>> Primarily because I also want folders with lots of medium sized files
>>> to show up, I have not found a way to do this with find
>>
>> good point ... although you could use 'sort -h' for filtering, e.g.
>>
>>  du -ah | sort -hr | head -n 10
>>
>> Your --min-size option is not a bad thing, however, maybe it's worth
>> turning it into --size as in 'find' so that people could also filter
>> files/directories smaller than a certain size.
>>
>> Berny
> 
> That is a good idea, here is a revised patch implementing that

Sorry for the tardy response.
This was actually proposed previously.
http://lists.gnu.org/archive/html/bug-coreutils/2009-01/msg00105.html
It's still a tempting option to add.
Given the simplicity, and usefulness +1 from me.
I'll apply it after the imminent release
unless there are objections.

cheers,
Pádraig.

Reply via email to