LAM(1) BSD Reference Manual LAM(1) NNAAMMEE lam - laminate files SSYYNNOOPPSSIISS llaamm [[ --[[ffpp]] min.max ]] [[ --ss sepstring ]] [[ --tt c ]] file ... DDEESSCCRRIIPPTTIIOONN _L_a_m copies the named files side by side onto the standard output. The _n-th input lines from the input _f_i_l_es are considered fragments of the single long _n-th output line into which they are assembled. The name `--' means the standard input, and may be repeated. Normally, each option affects only the _f_i_l_e after it. If the option letter is capitalized it affects all subsequent files until it appears again uncapitalized. The options are described below. --ff min.max Print line fragments according to the format string _m_i_n_._m_a_x, where _m_i_n is the minimum field width and _m_a_x the maximum field width. If _m_i_n begins with a zero, zeros will be added to make up the field width, and if it begins with a `-', the fragment will be left-adjusted within the field. --pp min.max Like --ff, but pad this file's field when end-of-file is reached and other files are still active. --ss sepstring Print _s_e_p_s_t_r_i_n_g before printing line fragments from the next file. This option may appear after the last file. --tt c The input line terminator is _c instead of a new- line. The newline normally appended to each output line is omitted. To print files simultaneously for easy viewing use _p_r(1). EEXXAAMMPPLLEESS The command llaamm ffiillee11 ffiillee22 ffiillee33 ffiillee44 joins 4 files together along each line. To merge the lines from four different files use llaamm ffiillee11 --SS ""\\ "" ffiillee22 ffiillee33 ffiillee44 4th Berkeley Distribution June 6, 1993 1 LAM(1) BSD Reference Manual LAM(1) Every 2 lines of a file may be joined on one line with llaamm -- -- << ffiillee and a form letter with substitutions keyed by `@' can be done with llaamm --tt @@ lleetttteerr cchhaannggeess SSEEEE AALLSSOO join(1), pr(1), printf(3) 4th Berkeley Distribution June 6, 1993 2