Annotation of 43BSD/contrib/icon/man/cat1/lam.1, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: 
                      4: LAM(1)                Icon Program Library                 LAM(1)
                      5: 
                      6: 
                      7: 
                      8: NNNNAAAAMMMMEEEE
                      9:      lam - laminate files
                     10: 
                     11: SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
                     12:      llllaaaammmm  file [ file | - string ] ...
                     13: 
                     14: DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
                     15:      _L_a_m laminates the named files onto the standard output.  The
                     16:      resulting output is the line-by-line concatenation of
                     17:      corresponding lines from each file named.  If the files are
                     18:      different lengths, empty lines are substituted for missing
                     19:      lines in the shorter files.
                     20: 
                     21:      Each _s_t_r_i_n_g argument is placed in the output line at the
                     22:      point that it appears in the argument list.  For example,
                     23:      lines from _f_i_l_e_1 and _f_i_l_e_2 can be laminated with a colon
                     24:      between each line from _f_i_l_e_1 and the corresponding line from
                     25:      _f_i_l_e_2 by the command
                     26: 
                     27:           lam file1 -: file2
                     28: 
                     29: 
                     30:      Filenames and strings may appear in any order in the argu-
                     31:      ment list.  If `-', is given for a filename the standard
                     32:      input is read at that point.  If a file is named more than
                     33:      once, each of its lines will be duplicated on the output
                     34:      line, except that if standard input is named more than once,
                     35:      its lines will be read alternately.  For example, each pair
                     36:      of lines from standard input can be joined onto one line
                     37:      with a space between them by the command
                     38: 
                     39:           lam - "- " -
                     40: 
                     41: 
                     42:      while the command
                     43: 
                     44:           lam file1 "- " file1
                     45: 
                     46: 
                     47:      replicates each line from _f_i_l_e_1.
                     48: 
                     49: SSSSEEEEEEEE AAAALLLLSSSSOOOO
                     50:      delam(1), delamc(1)
                     51: 
                     52:      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
                     53:      Report TR 81-20, Department of Computer Science, The Univer-
                     54:      sity of Arizona.  1981.
                     55: 
                     56: 
                     57: 
                     58: 
                     59: 
                     60: 
                     61: 
                     62: 
                     63: Version 5.9    The University of Arizona - 6/28/83              1
                     64: 
                     65: 
                     66: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.