I have several variables that have a value and I am trying to increment the variable names using a for loop. Example
#!/bin/ksh
$var1="Hi" $var2="world"
while .....
(($i++))
echo $var$i
And I have also tried
${var[i]}
and different variants but nothing worked. The result I expect is Hi world
Thanks!!