merge contents of two files into one file in bash
awk, bash, linux, merge, sed
Solution
You can always use `paste` command.
paste -d"\n" File1 File2 > File3
Problem
I have two files which has following contents File1 ``` Line1file1 Line2file1 line3file1 line4file1 ``` File2 ``` Line1file2 Line2file2 line3file2 line4file2 ``` I want to have these file's content merged to file3 as File3 ``` Line1file1 Line1file2 Line2file1 Line2file2 line3file1 line3file2 line4file1 line4file2 ``` How do I merge the files consecutively from one file and another file in bash? Thanks