|
Extracting dynamic values
Hi,
I am stuck with extracting values by combining 2 dynamically extracted values.
The code goes like this
#!/usr/bin/ksh
ID1="abcd"
i=1 #this is a dynamic value and keeps on changing
b="ID" #this is static
now i want the value of ID1 variable.
like echo $b$i
But echo $b$i gives "ID1" and not the value in ID1.
Is there a way to extract the value of ID1
Thanks
Chaitanya
|