reading data from .ini file

Hi,

I have a sample data file that contains name-value pairs in it.

For example:
name1=value1
name2=value2
name3=value3
...
...
...

My concern is

  1. How to get values of name1, name2, name3 using korn shell script?
  2. I don't want to access each varible using $name1,$name2, $name3 but something in the form a list so that when i use for loop i can retrive those values.

Thanks for you help.

try this

for  var1 in `cut -f 2 -d "="  datafile.ini `
do
  
   echo $var1
   # put any commands here 
   # to manipulate the variable

done

....

Thanks the code is executing fine according to my needs.