I have 3 different array as follows(ignore the actual values)
first_array=(123 456 657)
second_array=(11 22 33)
third_array=(29 45 56)
so i have a case where i need to pass these arrays one by one as an argument to a shell file
sh test.sh "${first_array[@]}"
but what im working on is a for loop as follows
arrays=("first" "second" "third")
for n in ${arrays[@]}; do
array=${n}_array
nohup sh test.sh "${!array[@]}" > log_${n} & <-some error here, array not going in
done
Please help me on how to write for loop for such case