shell script help needed
Ack. If you are a shell guru, I could really use your help.The problem is that my script is "reading in" a string (from an external file) that includes a variable. (ie: $ENERGY) I need that variable to then be "interpreted" properly, and not just displayed as a literal string value.
Here's what I have:
Code:
#!/usr/freeware/bin/bash FILE_LIST=sccs_filelist.dat export FILE_LIST cat $FILE_LIST | while read DESTINATION do echo $ENERGY echo $DESTINATION done exit
Code:
$ENERGY/lib/site/BCG/perllib/bill/ $ENERGY/lib/unbundling
/energy/lg4/energy
$ENERGY/lib/site/BCG/perllib/bill/
/energy/lg4/energy
$ENERGY/lib/unbundling
$ENERGY/lib/site/BCG/perllib/bill/
/energy/lg4/energy
$ENERGY/lib/unbundling
/energy/lg4/energy
/energy/lg4/energy/lib/site/BCG/perllib/bill/
/energy/lg4/energy
/energy/lg4/energy/lib/unbundling
/energy/lg4/energy/lib/site/BCG/perllib/bill/
/energy/lg4/energy
/energy/lg4/energy/lib/unbundling