ypmatch(1N) ypmatch(1N)
NAME
ypmatch - print the value of one or more keys from a YP map
SYNOPSIS
ypmatch [ -d ypdomain ] [ -k ] key... mname
DESCRIPTION
ypmatch prints the values associated with one or more keys from the
YPs name services map specified by mname, which may be either a
mapname or an map nickname.
Multiple keys can be specified; the same map will be searched for all
keys. The keys must be exact values insofar as capitalization and
length are concerned. No pattern matching is available. If a key is
not matched, a diagnostic message is produced.
The following options are available:
-d ypdomain
Specify a domain other than the default domain.
-k Before printing the value of a key, print the key itself,
followed by a `:' colon . This is useful only if the keys are
not duplicated in the values, or so many keys were specified
that the output could be confusing.
SEE ALSO
ypcat(1), ypfiles(4)
8/91 Page 1