Issue
I have two text files, each of them contains an information by line such like that
file1.txt file2.txt
---------- ---------
linef11 linef21
linef12 linef22
linef13 linef23
. .
. .
. .
I would like to merge theses files lines by lines using a bash script in order to obtain:
fileresult.txt
--------------
linef11 linef21
linef12 linef22
linef13 linef23
. .
. .
. .
How can this be done in Bash?
Solution
You can use paste
:
paste file1.txt file2.txt > fileresults.txt
Answered By - Mark Byers Answer Checked By - Robin (WPSolving Admin)