Well, one way to do something like this:

du -s * | sort -n | tail -n $NUMBER

...will give you the top $NUMBER of space users; not exactly what you asked
for but it will cut down on some verbage.  For something better I'd probably 
have to resort to a perl script, which is certainly doable but slightly more
involved.

Just doing "du -s * | sort -n > $FILENAME" will at least save you from having
to run du over and over again.  Then you can manipulate the file any way you
want, re-sort it some other way, or what have you.

Or you can write that perl script to work on the file instead of the output
from du... 


On Mon, Sep 11, 2000 at 05:10:27PM -0500, eric clover wrote:
> hi,
> is there a way to refine a du on a dir(/home) with sub dirs(4000usersdirs)
> to list only dirs that are over xxx sixe???
> 
> thank you
> eric
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list

-- 
Michael Jinks, IB
Systems Administrator, CCCP
finger [EMAIL PROTECTED] for public key
Vote Duke! http://www.entertaindom.com/pages/duke2000/home.jsp



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to