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.
-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 : -
lam [-f [0|-] min.max] [-s sepstring] [-t c] file …
lam [-p [0|-] min.max] [-s sepstring] [-t c] file …
Copies files side by side onto the standard output.
The n-th input lines from the input files are considered fragments of the single long n-th output line into which they are assembled.
file specifies `-' the standard input, and may be repeated.
Each option affects only the file after it.
If the option letter is capitalized it affects all subsequent files until it appears again uncapitalized.
To output files simultaneously for easy viewing use pr(1).
lam file1 file2 file3 file4
To merge the lines from four different files use
lam file1 -S "\
" file2 file3 file4
Every 2 lines of a file may be joined on one line
lam - - < file
a form letter with substitutions keyed by `@'
lam -t @ letter changes
Some of the functionality of lam is standardized as the paste(1) utility