{
    "mode": "info",
    "parameter": "paste",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/paste/json",
    "generated": "2026-07-31T02:25:48Z",
    "sections": {
        "File: coreutils.info,  Node: paste invocation,  Next: join invocation,  Prev: cut invocation,  Up: Operating on fields": {
            "content": "",
            "subsections": [
                {
                    "name": "8.2 'paste': Merge lines of files",
                    "content": "'paste' writes to standard output lines consisting of sequentially\ncorresponding 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": {
            "content": "given.\n\nSynopsis:\n\npaste [OPTION]... [FILE]...\n\nFor example, with:\n$ cat num2\n1\n2\n$ cat let3\na\nb\nc\n\nTake lines sequentially from each file:\n$ paste num2 let3\n1       a\n2       b\nc\n\nDuplicate lines from a file:\n$ paste num2 let3 num2\n1       a      1\n2       b      2\nc\n\nIntermix lines from stdin:\n$ paste - let3 - < num2\n1       a      2\nb\nc\n\nJoin consecutive lines with a space:\n$ seq 4 | paste -d ' ' - -\n1 2\n3 4\n\nThe program accepts the following options.  Also see *note Common\noptions::.\n\n'-s'\n'--serial'\nPaste the lines of one file at a time rather than one line from\neach file.  Using the above example data:\n\n$ paste -s num2 let3\n1       2\na       b       c\n\n'-d DELIM-LIST'\n'--delimiters=DELIM-LIST'\nConsecutively use the characters in DELIM-LIST instead of TAB to\nseparate merged lines.  When DELIM-LIST is exhausted, start again\nat its beginning.  Using the above example data:\n\n$ paste -d '%' num2 let3 num2\n1%a1\n2%b2\n%c\n\n'-z'\n'--zero-terminated'\nDelimit items with a zero byte rather than a newline (ASCII LF).\nI.e., treat input as items separated by ASCII NUL and terminate\noutput items with ASCII NUL. This option can be useful in\nconjunction with 'perl -0' or 'find -print0' and 'xargs -0' which\ndo the same in order to reliably handle arbitrary file names (even\nthose containing blanks or other special characters).\n\nAn exit status of zero indicates success, and a nonzero value\nindicates failure.\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}