[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH] Support for --min-size in du
From: |
Voelker, Bernhard |
Subject: |
RE: [PATCH] Support for --min-size in du |
Date: |
Tue, 11 Oct 2011 16:55:26 +0200 |
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