Hello I have a few variables with information, for example:
$names=
Tomer
Jacob
Adam
$Age:
25
27
28
$Country:
USA
Spain
Brazil
I would like to merge and print these details in a form that each lines presents a person with all his details
Wanted OUPUT:
Tomer 25 USA
Jacob 27 Spain
Adam 28 Brazil
i have tried to do something like this
for i in {1..$NumberOfLines}
do
echo $Names | head -$((i))
echo $Ages | head -$((i))
echo $Country | head -$((i))
done
of ocurse its not working