How to get the output of two cat commands parallel to each other
Solution 1:
What you need is paste
commad which paste rows in files side by side:
paste file1.txt file2.txt
This outputs exactly what you wanted.
For more options check man paste
.
Solution 2:
pr
will do what you want when used like so:
pr -mt file1.txt file2.txt
-
-m
will print all files in parallel. -
-t
will omit page headers and trailers.
Example output:
linux mint linux mint
ubuntu cent-os
cent-os fedora
fedora kali linux
debian arch linux
kali linux kubuntu
arch linux open
kubuntu deepin
open suse parrot
deepin ubuntu
parrot os debian