Search Results

Search: Posts Made By: Ilja
3,031
Posted By Ilja
Nice to know. Thank you.
Nice to know. Thank you.
3,031
Posted By Ilja
I solved it echo ${!BAR}
I solved it
echo ${!BAR}
3,031
Posted By Ilja
Evaluate the value of a variable?
I have variables:
FOO="Text"
BAR="FOO"

I'd like to be able to evaluate the variable named as the value of $BAR.
echo $FOO
Text

echo $BAR
FOO

This is what I'd like to do:
echo ${$BAR}...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy