info > paste

πŸ“› NAME

paste - merge lines of files

πŸš€ Quick Reference

Use CaseCommandDescription
Merge two files line by linepaste file1 file2Combine corresponding lines from each file, separated by TAB
Merge using custom delimiterpaste -d ',' file1 file2Use comma instead of TAB to separate merged lines
Serialize file contentspaste -s file1 file2Paste all lines of each file into a single line
Handle arbitrary filenamesfind . -print0 | paste -z - -Use zero‑byte delimiter for safe handling of special characters

πŸ“ Synopsis

paste [OPTION]... [FILE]...

πŸ“– Description

paste writes to standard output lines consisting of sequentially corresponding lines of each given file, separated by a TAB character. Standard input is used for a file name of - or if no input files are given.

An exit status of zero indicates success, and a nonzero value indicates failure.

βš™οΈ Options

πŸ’‘ Examples

Take lines sequentially from each file:

$ paste num2 let3
1       a
2       b
        c

Duplicate lines from a file:

$ paste num2 let3 num2
1       a      1
2       b      2
        c

Intermix lines from stdin:

$ paste - let3 - < num2
1       a      2
        b
        c

Join consecutive lines with a space:

$ seq 4 | paste -d ' ' - -
1 2
3 4

Serial mode:

$ paste -s num2 let3
1       2
a       b       c

Custom delimiter:

$ paste -d '%_' num2 let3 num2
1%a_1
2%b_2
%c_

πŸ“š See Also

See the Common options section of the coreutils manual for shared command‑line options.

paste
πŸ“› NAME πŸš€ Quick Reference πŸ“ Synopsis πŸ“– Description βš™οΈ Options πŸ’‘ Examples πŸ“š See Also

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-31 09:44 @216.73.217.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^