Combine lines from two files into columns.
Section: cut and paste
Merge files side by side
bash
bash
paste names.txt emails.txtExplanation
The nth line of each file is merged into a single output row.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing cut and paste
Extract comma-delimited fields
Print the first and third fields from a CSV-like file.
Join two files on a common field
Merge records based on matching first fields.