1makedbm(1M)             System Administration Commands             makedbm(1M)
2
3
4

NAME

6       makedbm - make a dbm file, or get a text file from a dbm file
7

SYNOPSIS

9       makedbm [-b] [-l] [-s] [-E] [-i yp_input_file]
10            [-o yp_output_name] [-d yp_domain_name]
11            [-m yp_master_name] [-S delimiter]
12            [-D number_of_delimiters] infile outfile
13
14
15       makedbm [-u dbmfilename]
16
17

DESCRIPTION

19       The  makedbm  utility  takes  the   infile and converts it to a pair of
20       files in ndbm  format  (see  ndbm(3C)),  namely  outfile.pag  and  out‐
21       file.dir.  Each  line  of  the  input file is converted to a single dbm
22       record. All characters up to the first TAB or SPACE form the  key,  and
23       the  rest of the line is the data. If a line ends with `\' (backslash),
24       the data for that record is continued on to the next line. makedbm does
25       not treat `#' (pound-sign) as a special character.
26
27
28       Because   makedbm  is  mainly used in generating dbm files for the  NIS
29       name service, it generates a special entry with the  key  yp_last_modi‐
30       fied,  which  is  the date of infile (or the current time, if infile is
31       `−').  The entries that have keys with the prefix yp_  are  interpreted
32       by NIS server utilities.
33

OPTIONS

35       The following options are supported:
36
37       -b                         Insert  the  YP_INTERDOMAIN into the output.
38                                  This key causes  ypserv(1M) to use  DNS  for
39                                  host  name and address lookups for hosts not
40                                  found in the maps.
41
42
43       -d yp_domain_name          Create  a  special  entry   with   the   key
44                                  yp_domain_name.
45
46
47       -D number_of delimiters    Specify  number_of_delimiters to skip before
48                                  forming the key.
49
50
51       -E                         Delimiters are escaped.
52
53
54       -i yp_input_file           Create  a  special  entry   with   the   key
55                                  yp_input_file.
56
57
58       -l                         Lower  case.  Convert  the keys of the given
59                                  map to lower case,  so  that,  for  example,
60                                  host  name  matches  succeed  independent of
61                                  upper or lower case distinctions.
62
63
64       -m yp_master_name          Create a special entry with the key  yp_mas‐
65                                  ter_name.  If  no master host name is speci‐
66                                  fied, yp_master_name is  set  to  the  local
67                                  host name.
68
69
70       -o yp_output_name          Create  a special entry with the key yp_out‐
71                                  put_name.
72
73
74       -s                         Secure map. Accept connections  from  secure
75                                  NIS networks only.
76
77
78       -S delimiter               Specify  the delimiter to use instead of the
79                                  default delimiter for forming the key.
80
81
82       -u dbmfilename             Undo a dbm file.  Prints  out  the  file  in
83                                  text format, one entry per line, with a sin‐
84                                  gle space separating keys from values.
85
86

OPERANDS

88       The following operands are supported:
89
90       infile     Input file for makedbm. If infile is `' (dash),  the  stan‐
91                  dard input is read.
92
93
94       outfile    One of two output files in ndbm format: outfile.pag and out‐
95                  file.dir.
96
97

ATTRIBUTES

99       See attributes(5) for descriptions of the following attributes:
100
101
102
103
104       ┌─────────────────────────────┬─────────────────────────────┐
105       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
106       ├─────────────────────────────┼─────────────────────────────┤
107       │Availability                 │SUNWcsu                      │
108       └─────────────────────────────┴─────────────────────────────┘
109

SEE ALSO

111       ypserv(1M), ndbm(3C), attributes(5)
112
113
114
115SunOS 5.11                        17 Aug 1999                      makedbm(1M)
Impressum