paste - merge corresponding or subsequent lines of files


paste [-s] [-d list] [file...]


Paste combines the corresponding lines of multiple files. Each line of each file is printed seperated by tab (or by the characters listed in the -d option). If no files are specified, stdin is read.


paste accepts the following options:

-d list

Define the column delimiters. Each character in this list will be used one at a time, as a delimiter for the columns. If there are fewer characters than columns, the characters will be repeated. Standard Perl special characters ("\n", "\t", etc.) are recognized.


Displays the output one file per row, rather than interleaving the lines of the files.


The working of paste is not influenced by any environment variables.


paste has no known bugs, unless you count the use of eval EXPR. Getting it to work under 'strict refs' would be nice, too.


The Perl implementation of paste was written by Randy Yarger,


This program is copyright by Randy Yarger 1999.

This program is free and open software. You may use, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.