I have two variables var1 and var2. The contents of each variables come from bash shell grep command.
echo $var1 prints
123 465 326 8080
echo $var2 prints
sila kiran hinal juku
Now I want to print the above into following formats in Linux bash shell
123 sila 465 kiran 326 hinal 8080 juku
So how can I print this way in bash shell??
joincommand, except I'd need to see how $var1 and $var2 got created.