If I have a variable that has a value stored and I want to place that value into an array using the name of the variable, how would I do this?e.g.:variable=Hello therearray[0]=$variabledoes not make array[0] equal to Hello thereWhat am I doing wrong?
Insert variable value as element in array
bash;variable;array