How to Align Two Text Files by Paragraph?

I have two files, source.txt and target.txt, with the same number of paragraphs.

How can I align them so that the result contains:

Source paragraph 1 TAB Target paragraph 1
Source paragraph 2 TAB Target paragraph 3
Source paragraph 3 TAB Target paragraph 3
etc.

The leading numbers in the example files are coincidental.
example_files.zip (9.5 KB)

Perhaps this shell command works:

paste -d ‘\t’ source.txt target.txt > aligned.txt

It worked :).

Does someone know a way to convert a tab-delimited text file directly to Ms Excel .xlsx via the command line?

1 Like