Tony Esposito wrote: > > Anyone have an idea about getting UNIX file system free space, used space, > total space numbers without having to resort to something like the following > ( which gets the percent of used space for a command-line supplied file > system name stored in the variable ${file_sys} ): > > $per_used = `df -k | grep " ${file_sys}\$" | awk '{print \$5}'`;
my ($per_used) = `df -k` =~ m|^\Q$file_sys\E.*?(\d+)%|m; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]