|
|
coherent
paste Command paste
Merge lines of files
ppaassttee [-ss] [-dd _l_i_s_t] _f_i_l_e ...
ppaassttee merges corresponding lines from multiple input files. By
default, ppaassttee uses the <ttaabb> character to delineate texts from
different files. ppaassttee writes the the merged text to standard
output; thus, ppaassttee can be used at the head of a shell pipeline.
If ppaassttee reads EOF from any of the input files while other files
still contain data, it substitutes blank lines as input from the
file that has ended.
***** Options *****
ppaassttee recognizes the following command-line options:
-dd _l_i_s_t
Use the characters in _l_i_s_t to separate the output fields.
The characters in _l_i_s_t are taken in sequence and used
circularly, i.e., taken in order until the end of _l_i_s_t is
reached, then returning to the first character in _l_i_s_t.
Normally, ppaassttee uses the <ttaabb> character to delineate the
output fields. The following character sequences have
special meaning when encountered in _l_i_s_t:
\\ Output a single backslash character
\tt Output a <ttaabb> character
\nn Output a <nneewwlliinnee> character
\00 Output a null string (i.e., no separator between output fields)
-ss Output successive lines from each input _f_i_l_e across the page,
with each input line separated from the next by a <ttaabb>
character. After all input lines from a given file have been
concatenated, terminate the output line with a <nneewwlliinnee>
character and repeat the process on the next input file.
***** Example *****
The following two files will be used for subsequent examples.
FFiillee11 contains:
File1_Line1
File1_Line2
File1_Line3
File1_Line4
FFiillee22 contains:
COHERENT Lexicon Page 1
paste Command paste
File2_Line1
File2_Line2
File2_Line3
File2_Line4
The command
paste File1 File2
generates the following output:
File1_Line1 File2_Line1
File1_Line2 File2_Line2
File1_Line3 File2_Line3
File1_Line4 File2_Line4
Adding the option -ss yields the output:
File1_Line1 File1_Line2 File1_Line3 File1_Line4
File2_Line1 File2_Line2 File2_Line3 File2_Line4
***** See Also *****
aawwkk, ccoommmmaannddss, ccuutt, sseedd
***** Notes *****
ppaassttee is copyright (c) 1989 by The Regents of the University of
California. All rights reserved.
ppaassttee is distributed as a service to COHERENT customers, as is.
It is not supported by Mark Williams Company. _C_a_v_e_a_t _u_t_i_l_i_t_o_r.
COHERENT Lexicon Page 2
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.