I have a problem with change value in array. I have several arrays: tab1, tab2.... etc. I want to change some value in these arrays using two variable:
x=2
y=3
tab$y[$x]="#"
it doesn't work. Could anyone help me?
Use declare, it's safer than eval:
declare tab$y[$x]="#"
${tab$y[$x]}?