in reply to Sorted "du"

Well, i notice just now the utility sort, i suppose it comes standard with most Unix flavours:
du|sort -gr|less
Well, but that's not perlish at all! And anyway TIMTOWTDI :)
$|=$_='1g2i1u1l2i4e2n0k',map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g

Replies are listed 'Best First'.
Re: Re: Sorted "du"
by duperdog (Initiate) on Mar 06, 2002 at 13:51 UTC
    On SysV, I am not aware of th -g option for sort, rather I use -n. Everyone tends to forget this great little command:)
    du|sort -nr|less