Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Using stat()

by vladb (Vicar)
on May 24, 2002 at 04:55 UTC ( #168978=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %stats = map {m/(\d+)[\t\s]+(.*)/; $2 => $1} `du -k`; 
    for (keys %stats) { 
     print "$_ = $stats{$_}\n"; 
    }
    
  2. or download this
    ./.ssh = 5
    ./temp = 273
    . = 280
    
  3. or download this
    $"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+)
    +-.*)$/;
    $_=["ps -e -o pid | "," $2 | "," -v "," "];`@$_`?{print"+ $1"}:{print"
    +- $1"}&&`rm $1`;
    print$\;}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-05-28 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?