The basic idea of my application is I wanna do some batch processing which is reading from a log file, dump all the data into a database, do some data processing and draw graph.
The problem is I don't know the way I can read this log file. The log file looks like this:
df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 197743 95224 86700 52% /
/dev/wd0e 5694137 998 5237609 0% /var
procfs 4 4 0 100% /proc
Amnesiac:~ >
---------------end of file------------------
I need to get all those percentage values and dump it into the database.
please help I need to submit this on the 31st May, thanks.