Consider a ASCII text file (lets say it contains code of a non-shell scripting language):
Text_File.msh:
spool on to \'$LOG_FILE_PATH/lo
#logfiles.list:
$EAMSROOT/var/log/LinuxOSAgent.log $EAMSROOT/var/log/PanacesServer.log $EAMSROOT/var/log/PanacesStrutsGUI.log
#My Program:
cat logfiles.list | while read line do eval Eline=$line echo $Eline done