Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Get the available space in a partition using as input a directory?

by Not_a_Number (Parson)
on Jul 12, 2013 at 19:38 UTC ( #1044062=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Get the available space in a partition using as input a directory?
in thread Get the available space in a partition using as input a directory?

Yup, you're right.

Here's an updated kludge:

my $free = ( split "\n", qx{ dir } )[-1]; $free = ( split ' ', $free )[2]; $free =~ s/\D//g; print $free;

Works for at least French and English...


Comment on Re^3: Get the available space in a partition using as input a directory?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-09-16 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (35 votes), past polls