I have something like this:
$CORSAIR_TYPE="good"
$CASE="CORSAIR"
...
$local temp_type=${CASE}_TYPE
echo ${!temp_type}
This gives me the value of the variable CORSAIR_TYPE
, which is "good". Is there a way of doing this without creating the temp_type
variable? What would I replace echo ${!temp_type}
with?
Thanks