Well
this works:
Code:
cat names.dat | while read NAME
do
export ${NAME}=${NAME}
done
(It doesn't seem to work if you don't export the variable. Dunno why.)
Of course, just why you'd want shell variables named that way is a bit beyond me. :-)
Have fun,
Rick