LAM(1) Icon Program Library LAM(1) NNNNAAAAMMMMEEEE lam - laminate files SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS llllaaaammmm file [ file | - string ] ... DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN _L_a_m laminates the named files onto the standard output. The resulting output is the line-by-line concatenation of corresponding lines from each file named. If the files are different lengths, empty lines are substituted for missing lines in the shorter files. Each _s_t_r_i_n_g argument is placed in the output line at the point that it appears in the argument list. For example, lines from _f_i_l_e_1 and _f_i_l_e_2 can be laminated with a colon between each line from _f_i_l_e_1 and the corresponding line from _f_i_l_e_2 by the command lam file1 -: file2 Filenames and strings may appear in any order in the argu- ment list. If `-', is given for a filename the standard input is read at that point. If a file is named more than once, each of its lines will be duplicated on the output line, except that if standard input is named more than once, its lines will be read alternately. For example, each pair of lines from standard input can be joined onto one line with a space between them by the command lam - "- " - while the command lam file1 "- " file1 replicates each line from _f_i_l_e_1. SSSSEEEEEEEE AAAALLLLSSSSOOOO delam(1), delamc(1) Hanson, David R. _S_o_f_t_w_a_r_e _T_o_o_l_s _U_s_e_r'_s _M_a_n_u_a_l, Technical Report TR 81-20, Department of Computer Science, The Univer- sity of Arizona. 1981. Version 5.9 The University of Arizona - 6/28/83 1