1

This question already has an answer here:

I have two text files. The first "file1.txt" has content:

Apple
Orange
Banana

while the second file "file2.txt" has content:

monday
tuesday
wednesday

I want to combine them into one file and its output is:

Apple monday
Orange tuesday
Banana wednesday

marked as duplicate by don_crissti, Thomas Dickey, Jeff Schaller, Sparhawk, G-Man Mar 3 '18 at 3:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

Simply with paste command:

paste file1.txt file2.txt

To set a single space as a delimiter - add -d' ' option: paste -d' ' file1.txt file2.txt

Not the answer you're looking for? Browse other questions tagged or ask your own question.