sh or bash: composite variables
Hi, using sh or bash I have 2 variables defined:
host=master
master_IP=100
How can I echo the value of master_IP in terms of the the variable host?
I thought:
echo "$"$host"_IP"
would give me "100".
But it does not work. Anyone?
Peter
|