[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    ypmatch(1) manual page Table of Contents

Name

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

Synopsis

ypmatch [ -k ] [ -t ] [ -d domain ] key [ key... ] mname

ypmatch -x

Availability

SUNWnisu

Description

ypmatch prints the values associated with one or more keys from the NIS ’s name services map specified by mname, which may be either a mapname or a map nickname ( mnames).

Multiple keys can be specified; all keys will be searched for in the same map. The keys must be the same case and length. No pattern matching is available. If a key is not matched, a diagnostic message is produced.

Options

-k
Before printing the value of a key, print the key itself, followed by a ‘:’ (colon).
-t
This option inhibits map nickname translation.
-d domain
Specify a domain other than the default domain.
-x
Display the map nickname table. This lists the nicknames (mnames) the command knows of, and indicates the mapname associated with each nickname.

See Also

ypcat(1) , ypfiles(4)


Table of Contents