For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > November 2006 > parsing report









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author parsing report
ccandillo@gmail.com

2006-11-24, 6:56 pm

I have a report that looks like the following. I am tring to add up
the disk space, total and used. Using regular expressions, I know how
to find the information that I am looking for but I do not know how to
add them up. Do I store them in hashes, arrays?

REPORT:

Statistics for fixed volume SERVER1/VOL1:

Total volume space: 10,172,164 100.00%
Space used: 7,865,744 77.33%

****************************************
******************************

Statistics for fixed volume SERVER1/VOL2:

Total volume space: 167,167,132 100.00%
Space used: 105,169,536 62.91%


****************************************
******************************

Statistics for fixed volume SERVER2/VOL1:

Total volume space: 6,076,752 100.00%
Space used: 3,639,684 59.90%

****************************************
******************************

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com