Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ypmatch(1yp) — Ultrix WS 2.0 VAX

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ypfiles(5yp)

ypcat(1yp)

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

−dDisplays key values for specified domain. 

−kDisplays key, followed by a colon (:), before displaying value of the key.  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. 

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

−xDisplays map nickname table.  This option tells ypmatch to list the nicknames (mnames) with their associated mapnames. 

SEE ALSO

ypfiles(5yp), ypcat(1yp)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026