How can i access the value of variable within a variable?
Please go through the following code:
count=0
newstr=aaaa${count}
echo "enter value : "
read $newstr <---- Suppose the value entered by the user is "home"
echo $newstr <---- This will print "aaaa0"
echo ${$newstr} <---- doesnt work
How can I get the value "home" using the newstr variable?