Let's say I have three arrays that look like the following:
a=(banana apple grape)
b=(1 2 3)
c=(yellow red purple)
If I wanted to loop through such that each index of each variable is matched, how would I do this? For example, I would want something like the following:
for i in range(0,len(a))
do
echo "$a[i] $b[i] $c[i]"
done
such that the results would be:
banana 1 yellow
apple 2 red
grape 3 purple