makedbm(1M)

makedbm - make an NIS dbm file

As shipped in IRIX 6.5.15. Unchanged since IRIX 6.5.

NAME
     makedbm - make an NIS dbm file

SYNOPSIS
     makedbm [ -b ] [ -l ] [ -i yp_input_file ] [ -o yp_output_name ]
          [ -d yp_domain_name ] [ -m yp_master_name ]
          infile outfile
     makedbm [ -u dbmfilename ]

DESCRIPTION
     Makedbm takes infile and converts it to a pair of files in dbm(3B)
     format, namely outfile.pag and outfile.dir.  Each line of the input file
     is converted to a single dbm 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 network information service
     (NIS) to interpret #; makedbm does not itself treat it as a comment
     character.  infile can be -, in which case standard input is read.

     Makedbm is meant to be used in generating dbm files for NIS and it
     generates a special entry with the key yp_last_modified, which is the
     date of infile (or the current time, if infile is -).

OPTIONS
     -b     (Only useful for the NIS hosts maps.)  Create a special entry with
            the key YP_INTERDOMAIN to notify slave servers to use the Internet
            name server, named(1M), for resolution of host names and addresses
            not in the hosts maps.  Note: for IRIX NIS servers, this key is
            not needed if they are started with the -i option (see
            ypserv(1M)).

     -l     Convert all uppercase characters in the keys to lowercase.

     -i     Create a special entry with the key YP_INPUT_FILE.

     -o     Create a special entry with the key YP_OUTPUT_NAME.

     -d     Create a special entry with the key YP_DOMAIN_NAME.

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

     -u     Undo a dbm file.  That is, print out a dbm 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
     /etc/passwd to the key value form used by makedbm.  For example,
           #!/usr/bin/awk -f
           BEGIN { FS = ":"; OFS = "\t"; }
                 { print $1, $0 }


     takes the /etc/passwd file and converts it to a form that can be read by
     makedbm to make the NIS file passwd.byname.  That is, the key is a
     username, and the value is the remaining line in the /etc/passwd file.

SEE ALSO
     yppasswd(1M), ypserv(1M), dbm(3B)