Help! I can't figure this out for the life of me!
I have:
m=5
eval TEST_m="dog"
If I do:
echo $TEST_5 >> "dog"
I'm trying to find a way to echo "$TEST_$m" and get "dog"; I've tried these, but they all just return the value of $m which is 5.
echo $TEST_$m >> 5
echo $TEST_${m} >> 5
eval "echo $TEST_${m}" >> 5
Thanks!