UNIX for loop

Guys,

Please help me on the below..

 
 sample.prm
 
/u/test/:
 mail=123@gmail.com
 purgedays=30
 zipdays=7
 purgefile=log.gz
 zipfile=log
 
/u/test/:
 mail=123@gmail.com
 purgedays=30
 purgefile=txt.gz
 zipfile=txt
 zipdays=7
 
sample.cfg
purge_path="/u/test/"
parmfile=sample.prm
log=sample.log 
 
sample.sh
#!/bin/sh
#here cfg=
. $cfg
 
for VAR in $purge_path    # was $pruge_path
do
   mail_id=`stanzaget ${parm_file} ${VAR} mailid`
   purge_days=`stanzaget ${parm_file} ${VAR} purgedays`
   zip_days=`stanzaget ${parm_file} ${VAR} zipdays`
   purge_file=`stanzaget ${parm_file} ${VAR} purgefile`
   zip_file=`stanzaget ${parm_file} ${VAR} zipfile`
 
   find $VAR -type f -mtime +$zip_days -name "*zip_file" -exec ls -la {} \;
 
   find $VAR -type f -mtime +$purge_days -name "*purge_file" -exec ls -la {} \;
 
done

when the above script runs, its taking the first stanza values from sample.prm.. Its not taking the second stanza since both are same path(/u/test/)
i want both the paths to be looped while the program is running.
Can anyone please help me on this..

Thanks in advance.

You source which file, or which sample.cfg is the good one to start with?

Sorry.Now i have corrected it.

Please check