paste [-s] [-d list] file file [ - ]...
Concatenate the corresponding lines of the files (one from each)
replacing newline characters with a single delimter (except the last file's ).
If the end of a file is reached while other files still contain data, empty lines are supplied.
-s |
- as one of the files
; standard input is read one line at a time, circularly, for each - .
> cat f0 01 02 03 |
Combine pairs of lines from a file into single lines:
paste -s -d '\t\n' myfile
Number the lines in a file, similar to nl(1):
sed = myfile | paste -s -d '\t\n' - -
Create a colon-separated list of directories named bin, suitable for use in the PATH environment variable:
find / -name bin -type d | paste -s -d : -
BSD June 25, 2004