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.

      Start asking to get answers

      Find the answer to your question by asking.

      Ask question

      Explore related questions

      See similar questions with these tags.