I am trying to create one loop that will iterate through many Array Variables by increasing the number in the Array name dynamically (i.e Array_1, Array_2, Array_...) by using integer variable (i.e Array_$c) that I can increase (++) inside for loop?
Thank you!
#!/bin/bash
declare -a Array_1=("Google", "www.google.com")
declare -a Array_2=("Facebook", "www.facebook.com")
daclare -a Array_3=("Gmail", "www.gmail.com")
c=1
for i in "${Array_$c[@]}";
do
#Print name of the Website ($Array_1[0])
#Open link in FF ($Array_1[1])
#Increase the $c, to iterate through the second Array using same loop
(c=$c+1)
done