paste

Merge lines of files side by side.

What it does

paste combines lines from multiple files or inputs horizontally, joining corresponding lines with a delimiter (default is tab).

Quick Start

# Merge two files side by side
paste file1.txt file2.txt

# Use comma as delimiter
paste -d ',' file1.txt file2.txt

Examples

# Combine three files
paste a.txt b.txt c.txt

# Join lines from a single file
paste -s file.txt

# Custom delimiter sequence
paste -d ',:' file1.txt file2.txt

# Combine command outputs
paste <(ls) <(whoami)

Notes