Im facing problem in assigning value of eval array variable as normal variable..
x=0
eval DATA${x}="FJSVcpcu"
x=`expr $x + 1`
eval DATA${x}="FJSVcsr"
if x=0, type -> eval echo \$DATA$x , its give me FJSVcpcu
i want assign this value into an variable as
variable=`eval echo \$DATA$x`
but when i echo variable , the value show me 0, instead of FJSVcpcu
how i can fix this problem so i can get "FJSVcpcu" as variable value??