DELAM(1) Icon Program Library DELAM(1) NNNNAAAAMMMMEEEE delam - delaminate a file using column positions SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ddddeeeellllaaaammmm fieldlist {infile | -} {outputfile | -}... DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN _D_e_l_a_m delaminates an input file into several output files according to the fields specified by ffffiiiieeeellllddddlllliiiisssstttt. _D_e_l_a_m reads iiiinnnnffffiiiilllleeee and writes the fields in each line to the correspond- ing output files as individual lines. If no data occurs in the specified position for a given input line an empty out- put line is written. This insures that all output files con- tain the same number of lines as the input file. If `-' is used for iiiinnnnffffiiiilllleeee, the standard input is read. If `-' is used as an output file name, the corresponding field is written to the standard output. The fields are defined by ffffiiiieeeellllddddlllliiiisssstttt, which is a list of field specifications, separated by commas, colons, or semi- colons, of the following form: _n the character in column _n _n-_m the characters in columns _n through _m _n+_m _m characters beginning at column _n where the columns in a line are numbered from 1 to the length of the line. The use of _d_e_l_a_m is illustrated by the following examples. delam 1-10,5 foo x y reads file _f_o_o and writes characters 1 through 10 to file _x and character 5 to file _y. delam 10+5:1-10:1-10:80 - middle left1 left2 end reads the standard input and writes characters 10 through 14 to _m_i_d_d_l_e, 1 through 10 to _l_e_f_t_1 and _l_e_f_t_2, and character 80 to _e_n_d. delam 1-80;1-80 - - - copies the standard input to the standard output, replicat- ing the first eighty columns of each line twice. NNNNOOOOTTTTEEEESSSS The functionality of the Software Tools _d_e_l_a_m has been divided. The Icon version of _d_e_l_a_m uses an extended fieldlist syntax. Version 5.9 The University of Arizona - 8/15/84 1 DELAM(1) Icon Program Library DELAM(1) SSSSEEEEEEEE AAAALLLLSSSSOOOO lam(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 - 8/15/84 2