'\"macro stdmacro
.if n .pH g1.ypmatch @(#)ypmatch	40.2 of 12/29/89
.\" Copyright 1989 AT&T
.\" @(#)ypmatch.1 1.9 89/09/28 SMI;
.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
.nr X
.if \nX=0 .ds x} ypmatch 1 "" "\&"
.if \nX=1 .ds x} ypmatch 1 ""
.if \nX=2 .ds x} ypmatch 1 "" "\&"
.if \nX=3 .ds x} ypmatch "" "" "\&"
.TH \*(x}
.SH NAME
ypmatch \- print the value of one or more keys from a YP map
.SH SYNOPSIS
\f4ypmatch\fR
[
\f4\-d\fR
\f2ypdomain\fR
] [
\f4\-k\fR
]
\f2key\fR.\|.\|.
\f2mname\fR
.SH DESCRIPTION
.P
\f4ypmatch\fR
prints the values associated with one or more keys from the
\s-1YP\s0s
name services map specified by
\f2mname\fR,
which may be either a
\f2mapname\fR
or an map nickname.
.P
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.
.P
The following options are available:
.TP
\f4\-d \f2ypdomain\fR
Specify a domain other than the default domain.
.TP
\f4\-k\fR
Before printing the value of a key,
print the key itself, followed by a
.RB ` : '
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.
.SH "SEE ALSO"
\f4ypcat\fR(1),
\f4ypfiles\fR(4)
