Quote:
Originally Posted by marcpascual
how do i make its output like this?
Code:
a 1
b 2
c 3
d 4
|
It seems you can't have multiple "x in y" terms in a for loop, so the next best thing is probably to rewrite the loop as an index iterator:
Code:
is=(a b c d)
js=(1 2 3 4)
for ((i = 0; i < 4; i++))
do echo ${is[i]} ${js[i]}
done