abc=( "one" "two" "three" )
for((i=0; i<${#abc[@]}; i++))
{
xyz$i="hello" --- this is giving me error as no such file or directory
eval xyz$i="hello" --- this is working fine and solving my above error
eval xyz$i="hello ${abc[$i]}" --- this line is again giving me error as no such file or directory
}
what is the correct way i can assign the value