paste man page

paste — merge lines of files


paste -s file

paste -s -d delimiter file

paste file1 file2

paste -d delimiter file1 file2

paste -d '\n' file1 file2


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


Write lines consisting of the sequentially corresponding lines from each FILE, separated by TABs, to standard output.

With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.

-d, --delimiters=LIST

reuse characters from LIST instead of TABs

-s, --serial

paste one file at a time instead of in parallel

-z, --zero-terminated

line delimiter is NUL, not newline


display this help and exit


output version information and exit


Written by David M. Ihnat and David MacKenzie.

Reporting Bugs

GNU coreutils online help: <>
Report paste translation bugs to <>

See Also

Full documentation at: <>
or available locally via: info '(coreutils) paste invocation'

Referenced By

colrm(1), column(1), ksh(1).

December 2017 GNU coreutils 8.29 User Commands