1

I have an array called NL and the variable arrayname='NL'.

I would like to set NL equal to the value of a second array (REPLACE_ARRAY) by using the arrayname variable.

Is this possible? I have read similar questions and do not see them address this, I must be missing something.

1 Answer 1

1

Was able to find a resolution that worked for me!

declare -a $varname='(${REPLACE_ARRAY[@]})'
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .