Shell script

Guys,
Here is my requirement..
i have a cfg as below

 
example.cfg
LOG_PATH=/u/sample/sample.log
PATH=/u/sample/
MAIL=sample@gmail.com
ZIP_DAYS=7
PURGE_DAYS=30

LOG_PATH=/u/sample/sample.log
PATH=/u/sample/hello/test
MAIL=sample@gmail.com
ZIP_DAYS=5
PURGE_DAYS=25

here is my script logic..

I want to write a shell script to read these values using loop..Hope this can be done using stanzaget.

can anyone please give me some general script for this..

Thanks,

see sample below ... note "." in front of filename on 2nd line ...

#! /bin/ksh
. /dir/example.cfg  # <-- read and import all values within example.cfg

..........
..........

exit 0