Hi
I am assigning some values like this in my script.
server1=admin
server2=managed
server3=managed1
count=3
while i in $count
With in while i like to get the admin, Managed and Managed1 values.
What i did is
val=server$i
echo $val (it prints server1 with in loop, but i like to get the value of the server1.ie admin)
i tried like echo $($val). I know this is stupid thing.
Can anyone guid me to access values for this assigned variable please?
Jasmine