ypmatch(1nis)


ypmatch -- print the value of one or more keys from an NIS map

Synopsis

ypmatch [-d ypdomain] [-k] key... mname

ypmatch -x

Description

The ypmatch command prints the values associated with one or more keys from the Network Information Service (NIS) map specified by mname.

Usage

mname may specify either a map name or a map alias.

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.

Options

ypmatch takes the following options:

-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.

-x
Shows map aliases. This lists the aliases (mnames) the command knows of, and indicates the map name associated with each alias.

References

domainname(1Mnis), ypcat(1nis), ypfiles(4nis)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004