On Tue, Sep 12, 2000 at 10:10:11AM +0800, Gregory Hosler wrote:
>
> > du -s * | sort -n | tail -n $NUMBER
> >
> > ...will give you the top $NUMBER of space users;
>
> not necessarily.
>
> du does left justification. if you're going to sort, you'll need right
> justification.
Huh? I do this all the time.
[mjinks@embley mjinks]$ du -s * | sort -n
0 backgrounds
0 gv_3987502c_1_Price
0 gv_3987511a_1_Price
0 gv_39875145_1_Price
4 CCP_setinit.sas
4 NeXTmail
4 News
4 WARNING
4 Xauthority.BAK
4 addressbook
...and so forth...
I see from the sort(1) man page that -n implies -b, which would eliminate the
need for _left_ justification, but that's not what you were talking about...
--
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