[PATCH] Support for thresholds in du(1)

Mel fbsd.hackers at rachie.is-a-geek.net
Wed Feb 25 18:24:42 PST 2009


Hi,

attached is a small patch to add threshold support to du(1). I've been using 
it on 7-STABLE machines for a while, cause I got tired of the noise I get 
when sorting and then reformatting to human-readable. Especially since 
sorting isn't part of the equasion "I'd like to see all dirs exceeding a 
given size".
I've not updated the manpage on -STABLE yet, should be the same as HEAD.

Example usage:
# du -xht 20m .
 29M    ./contrib/binutils
 52M    ./contrib/gcc
237M    ./contrib
 35M    ./crypto
 28M    ./lib
 20M    ./share
 55M    ./sys/dev
139M    ./sys
545M    .

I'll file a PR for it, if there's no objections to this feature / 
implementation, the style(9) or the usage of -t.
-- 
Mel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: du.HEAD.diff
Type: text/x-diff
Size: 2973 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090226/052d8675/du.HEAD.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: du.RELENG_7.diff
Type: text/x-diff
Size: 2046 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090226/052d8675/du.RELENG_7.bin


More information about the freebsd-hackers mailing list