coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] Support for --size in du


From: Pádraig Brady
Subject: Re: [PATCH] Support for --size in du
Date: Wed, 04 Jan 2012 18:18:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

On 10/11/2011 08:00 PM, Jakob Truelsen wrote:
> On Tue, Oct 11, 2011 at 4:55 PM, Voelker, Bernhard
> <address@hidden> wrote:
>>
>> Jakob Truelsen wrote:
>>
>>> On Tue, Oct 11, 2011 at 4:19 PM, Voelker, Bernhard
>>> <address@hidden> 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 <address@hidden>
>>>>> 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

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