makedbm man page on OPENSTEP

Man page or keyword search:  
man Server   1419 pages
apropos Keyword Search (all sections)
Output format
OPENSTEP logo
[printable version]


MAKEDBM(8)							    MAKEDBM(8)

NAME
       makedbm - make a yellow pages 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
       makedbm takes infile and converts it to a  pair	of  files  in  dbm(3X)
       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 yellow pages 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 the yellow
       pages, 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
       -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,

	       #!/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 yellow pages file passwd.byname.	That  is,  the
       key  is	a  username,  and  the	value  is  the	remaining  line in the
       /etc/passwd file.

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

			       17 September 1985		    MAKEDBM(8)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OPENSTEP

List of man pages available for OPENSTEP

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net