in reply to Unix size again
in thread Unix size
my ($location) = @_; $location =~ s{ ([\\\']) }{ '\\' . $1 }gex; # crude escape print "\n".'Calculating Scan Statistics...'."\n"; my $cmd = "du -sk '$location'"; warn $cmd; # let's see what's actually getting executed! my $size = `cmd`; print "$size";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unix size again
by Anonymous Monk on Feb 08, 2012 at 09:10 UTC | |
by Corion (Patriarch) on Feb 08, 2012 at 09:26 UTC | |
by tobyink (Canon) on Feb 08, 2012 at 09:27 UTC |