manpagez: man pages & more
info coreutils
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.2 paste: Merge lines of files

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.

For example:

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


paste [option]… [file]…

The program accepts the following options. Also see Common options.


Paste the lines of one file at a time rather than one line from each file. Using the above example data:

$ paste -s num2 let3
1       2
a       b       c
-d delim-list

Consecutively use the characters in delim-list instead of TAB to separate merged lines. When delim-list is exhausted, start again at its beginning. Using the above example data:

$ paste -d '%_' num2 let3 num2

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

© 2000-2017
Individual documents may contain additional copyright information.