MAKEDBM(NADM) System V NFS (11/28/90) MAKEDBM(NADM)
NAME
makedbm - make a network information service (NIS) dbm file
SYNOPSIS
makedbm [ -i yp_input_file ] [ -o yp_output_name ] [ -d
yp_domain_name ] [ -m yp_master_name ] infile outfile
makedbm [ -u dbmfilename ]
DESCRIPTION
The makedbm command takes infile and converts it to a pair
of files in dbm(NS) 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: the rest of the line is the data. If a
line ends with \, then the data for that record is continued
onto the next line. It is left for the clients of the
network information service (NIS) to interpret "#"; the
makedbm command itself does not treat "#" as a comment
character. infile can be -, in which case standard input is
read.
The makedbm command is intended for generating dbm files for
the network information service (NIS); makedbm generates a
special entry with the key yp_last_modified, which is the
date of infile (or the current time, if infile is -).
OPTIONS
-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 with
one entry per line and with a single space separating
each key from its value.
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, the awk program
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 network information
service (NIS) file passwd.byname. That is, the key is a
Page 1 (printed 7/1/91)
MAKEDBM(NADM) System V NFS (11/28/90) MAKEDBM(NADM)
username and the value is the remaining line in the
/etc/passwd file.
SEE ALSO
dbm(NS), yppasswd(NC)
Page 2 (printed 7/1/91)