parsing report



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%

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

.



Relevant Pages

  • Re: parsing report
    ... Using regular expressions, I know how ... Do I store them in hashes, ... Statistics for fixed volume SERVER1/VOL1: ...
    (perl.beginners)
  • parsing report
    ... the disk space, total and used. ... Using regular expressions, I know how ... Statistics for fixed volume SERVER1/VOL1: ...
    (perl.beginners)
  • Re: Getting DiskDrive Space
    ... Lee, ... statistics beyond 2 GB. ... Download icon, and choose Visual FoxPro as the product. ... As couple of times we have run short of the disk space & did'nt know till the things started running really slow. ...
    (microsoft.public.fox.helpwanted)