Read from a config file.

Hello All,

I have a config file which has the following data :

export DBCHECKSUM001="/home/srvcdesk/DBCheckSum/DBCheckSum001.cfg"
export DBCHECKSUM002="/home/srvcdesk/DBCheckSum/DBCheckSum002.cfg"
export DBCHECKSUM003="/home/srvcdesk/DBCheckSum/DBCheckSum003.cfg"
export DBCHECKSUM004="/home/srvcdesk/DBCheckSum/DBCheckSum004.cfg"

and I want to write a script that will read the export entry and call a java program and pass the DBCHECKSUM002 in a loop. Is it possible?

Please let me know at the earliest!!!

something like this:

JAVA_COMAND="executable_file"
cat file_config |cut -f2 -d"=" | while read line
do
        $JAVA_COMMAND $line
done