bash - change value in array -


i have problem change value in array. have several arrays: tab1, tab2.... etc. want change value in these arrays using 2 variable:

x=2 y=3 tab$y[$x]="#" 

it doesn't work. me?

eval friend:

eval tab$y[$x]="#" 

Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -