let’s say I have two files:
file1:
JavaScript
x
cat dog
fox bat
rat pig
file2:
JavaScript
frog
deer
mouse
How can I get file3?
JavaScript
cat dog frog
fox bat deer
rat pig mouse
Advertisement
Answer
Linux has paste command. Basic example is as follows.
paste file1 file2 > file3