HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
m
makedbm(1M) makedbm(1M)
-u Undo the database_name (i.e., write the contents of database_name to the standard output), one dbm
record per line. A single space separates each key from its value.
EXAMPLES
Shell scripts can be written to convert ASCII files such as
/etc/netgroup
to the key-value form used
by
makedbm. For example,
#!/usr/bin/sh
/usr/bin/awk ’BEGIN { FS = ":" } { print $1, $0 }’ \
/etc/netgroup | \
makedbm - netgroup
converts the file /etc/netgroup
to a form that is read by makedbm
to make the NIS map net-
group
. The keys in the database are netgroup(4) names, and the values are the remainders of the lines in
the
/etc/netgroup
file.
AUTHOR
makedbm was developed by Sun Microsystems, Inc.
SEE ALSO
domainname(1), ypinit(1M), ypmake(1M), yppoll(1M), gethostname(2), netgroup(4), ypfiles(4).
Section 1M−−472 Hewlett-Packard Company − 2 − HP-UX 11i Version 1: September 2005