I have a simple script that reads in two files that contain a list of variables
and a list of values to assign to those variables. The script sorts them just
fine. But where I run into a problem is in assigning the values to the
variables. Here is the script
OLD_PARAM=`cat $HOME/.genpad.prm | cut -d " " -f 3`
ALL_VARS=`cat $HOME/.genpad.var | cut -d " " -f 2`
for SET in `echo $ALL_VARS`
`echo $ALL_VARS | cut -d " " -f $COUNTA`=`echo $OLD_PARAM | cut -d "
COUNTA=`expr $COUNTA + 1`
COUNTB=`expr $COUNTB + 1`
I get the error "./genpad: G9_OBD2_IP=YES: not found"
where the G9 is my variable and YES is the value I want assigned
any suggestions would be greatly appreciated.