4.3BSD/usr/contrib/icon/man/cat1/delamc.1




DELAMC(1)             Icon Program Library              DELAMC(1)



NNNNAAAAMMMMEEEE
     delamc - delaminate a file using separator characters

SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
     ddddeeeellllaaaammmmcccc [-tchars] {infile | -} {outputfile | -}...

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     _D_e_l_a_m_c delaminates an input file into several output files
     according to the separator characters specified by the cccchhhhaaaarrrrssss
     argument following the ----tttt flag.  _D_e_l_a_m_c reads iiiinnnnffffiiiilllleeee and
     writes the fields in each line to the corresponding output
     files as individual lines. If no data occurs in the speci-
     fied position for a given input line an empty output line is
     written. This insures that all output files contain 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. If the ----tttt flag is not
     used, an ascii horizontal tab character is assumed as the
     default field separator.

     The use of _d_e_l_a_m_c is illustrated by the following examples.

          delamc tst.asm labels opcodes operands

     reads the file _t_s_t._a_s_m and writes the fields, each of which
     is separated by a tab character, to the output files _l_a_b_e_l_s,
     _o_p_c_o_d_e_s, and _o_p_e_r_a_n_d_s.

          delamc -t: scores names matric ps1 ps2 ps3

     reads the file _s_c_o_r_e_s and writes the fields, each of which
     is separated by a colon, to the indicated output files.

          delamc -t,:; oldata f1 f2

     reads the file _o_l_d_a_t_a and separates the fields using either
     a comma, a colon, or a semicolon.

NNNNOOOOTTTTEEEESSSS
     The functionality of the Software Tools _d_e_l_a_m has been
     divided. _D_e_l_a_m_c differs from the Tools syntax by allowing a
     set of separation characters to be specified.

SSSSEEEEEEEE AAAALLLLSSSSOOOO
     lam(1), delam(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              1