I have three arrays:
array1=(8 7 6 5 4 3 2 1)
declare -a array2
declare -a array3
And X that representing which array I should use for some operation So, first of all I am finding it like this:
nameOfArray=array$X[@]
indirectTempArray=("${!nameOfArray}")
echo ${indirectTempArray[@]} // returns 8 7 6 5 4 3 2 1 in case if X == 1
So, the question is, how I can delete value from original array which reference I have?