4.3BSD-UWisc/man/cat8/makedbm.8

Compare this file to the similar file:
Show the results in this format:




MAKEDBM(8)          UNIX Programmer's Manual           MAKEDBM(8)



NAME
     makedbm - make a yellow pages dbm file

SYNOPSIS
     makedbm [ -i _y_p__i_n_p_u_t__f_i_l_e ] [ -o _y_p__o_u_t_p_u_t__n_a_m_e ] [ -d
     _y_p__d_o_m_a_i_n__n_a_m_e ] [ -m _y_p__m_a_s_t_e_r__n_a_m_e ] _i_n_f_i_l_e _o_u_t_f_i_l_e
     makedbm [ -u _d_b_m_f_i_l_e_n_a_m_e ]

DESCRIPTION
     _m_a_k_e_d_b_m takes _i_n_f_i_l_e and converts it to a pair of files in
     _d_b_m(3X) format, namely _o_u_t_f_i_l_e.pag and _o_u_t_f_i_l_e.dir.  Each
     line of the input file is converted to a single _d_b_m record.
     All characters up to the first tab or space form the key,
     and the rest of the line is the data.  If a line ends with
     \, then the data for that record is continued on to the next
     line.  It is left for the clients of the yellow pages to
     interpret #; _m_a_k_e_d_b_m does not itself treat it as a comment
     character.  _i_n_f_i_l_e can be -, in which case standard input is
     read.

     _m_a_k_e_d_b_m is meant to be used in generating _d_b_m files for the
     yellow pages, and it generates a special entry with the key
     _y_p__l_a_s_t__m_o_d_i_f_i_e_d, which is the date of _i_n_f_i_l_e (or the
     current time, if _i_n_f_i_l_e is -).

OPTIONS
     -i   Create a special entry with the key _y_p__i_n_p_u_t__f_i_l_e.

     -o   Create a special entry with the key _y_p__o_u_t_p_u_t__n_a_m_e.

     -d   Create a special entry with the key _y_p__d_o_m_a_i_n__n_a_m_e.

     -m   Create a special entry with the key _y_p__m_a_s_t_e_r__n_a_m_e.  If
          no master host name is specified, _y_p__m_a_s_t_e_r__n_a_m_e will
          be set to the local host name.

     -u   Undo a _d_b_m file.  That is, print out a _d_b_m file one
          entry per line, with a single space separating keys
          from values.

EXAMPLE
     It is easy to write shell scripts to convert standard files
     such as /_e_t_c/_p_a_s_s_w_d to the key value form used by _m_a_k_e_d_b_m.
     For example,

           #!/bin/awk -f
           BEGIN { FS = ":"; OFS = "\t"; }
           { print $1, $0 }

     takes the /_e_t_c/_p_a_s_s_w_d file and converts it to a form that
     can be read by _m_a_k_e_d_b_m to make the yellow pages file
     _p_a_s_s_w_d._b_y_n_a_m_e.  That is, the key is a username, and the



Printed 12/27/86        17 September 1985                       1






MAKEDBM(8)          UNIX Programmer's Manual           MAKEDBM(8)



     value is the remaining line in the /_e_t_c/_p_a_s_s_w_d file.

SEE ALSO
     dbm(3X), yppasswd(1)



















































Printed 12/27/86        17 September 1985                       2