The Full Wiki

More info on Paste (Unix)

Paste (Unix): Wikis

Advertisements

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

(Redirected to paste (Unix) article)

From Wikipedia, the free encyclopedia

paste is a Unix command line utility which is used to join files horizontally (parallel merging) by outputting lines consisting of the sequentially corresponding lines of each file specified, separated by tabs, to the standard output. It is effectively the horizontal equivalent to the utility cat command which operates on the vertical plane of two or more files.

Example

To paste several columns of data together into the file www from files who, where, and when:

paste who where when > www

If the files contain:

who where when

Sam
Dave
Sue

Detroit
Edgewood
Tampa

January 3
February 4
March 19

This creates the file named www containing:

Sam            Detroit         January 3
Dave           Edgewood        February 4
Sue            Tampa           March 19

See also

Advertisements

Advertisements






Got something to say? Make a comment.
Your name
Your email address
Message