How to join two files line by line

In-order to merge two files line by line we can use paste utility in linux.

So if we need to merge file1 and file2.

#paste file1 file2 > result

Merged content will be saved to the file "result". The corresponding lines of each file are separated by tabs.

Leave a Reply

Your email address will not be published. Required fields are marked *