Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Sorted "du"

by giulienk (Curate)
on Feb 26, 2002 at 22:38 UTC ( [id://147753]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://147753]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-26 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found