commands

paste — merge corresponding lines

Combine rows in input order with tabs by default. -d specifies delimiter list. A shorter file contributes empty fields once exhausted. Not a key-based join. Example assumes a fresh text-streams lab fixture.

Formal Syntax & Structure

linux syntaxlinux
paste [OPTION]... [FILE]...

Parameters & Attributes

NameTypeDescription
-doptionDelimiter list
FILEoperandInput files

Return Value

exit status and output

GNU paste writes aligned rows and returns nonzero on read/write errors. Shorter inputs contribute empty fields, not a row-count mismatch error.

Working Example

Example Snippetlinux
paste -d ':' names.txt counts.txt
Linux Reference