ypmatch(1yp)
NAME
ypmatch - print the value of one or more keys from a yp map
SYNTAX
ypmatch [ −d domain ] [ −k ] [ −t ] key ... mname
ypmatch −x
DESCRIPTION
The ypmatch command prints the values associated with one or more keys from the yellow pages (YP) map (database) specified by a mname, which may be either a mapname or a map nickname.
Multiple keys can be specified. After the key values and the map name have been specified, ypmatch searches the map for all of the specified keys. The specified keys must be exact values in terms of capitalization and length. The ypmatch command does not have a pattern matching capability. If ypmatch cannot match a key, it produces a diagnostic message.
OPTIONS
−dDisplay the key values for the specified domain.
−kBefore printing the value of a key, print the key itself, followed by a colon (’:’). This is useful if the keys are not duplicated in the returned values, or if the number of specified keys is so large that the output is confusing.
−tInhibit translation of nickname to mapname. For example, ypmatch −t zippy passwd fails because there is no map named passwd, while ypmatch zippy passwd succeeds because ypmatch translates it to ypmatch zippy passwd.byname.
−xDisplay the map nickname table. This option tells ypmatch to list the nicknames (mnames) with their associated mapnames.