How do I append lines from one file to the end of each line of another file? How do I append lines from one file to the end of each line of another file? bash bash

How do I append lines from one file to the end of each line of another file?


paste --delimiter=' ' file1 file2

Note: the result will be written to stdout. If you want to store the result in a file, use a redirection operator:

paste --delimiter=' ' file1 file2 > outputfile

Run man paste for more information about the command.