Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ypmatch(1) — HP-UX 6.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

domainname(1)

ypcat(1)

ypserv(1M)

ypfiles(4)

YPMATCH(1)  —  Series 300 Only

NAME

ypmatch - print the values of selected keys in a Yellow
          Pages map

SYNOPSIS

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

DESCRIPTION

The ypmatch command prints the values associated with one or more keys in a Yellow Pages (YP) map specified by mname. The mname may be either a mapname or a map nickname. A map nickname is a synonym by which a YP map may be referenced.  If multiple keys are specified, the same map is searched for an occurrence of each key.  A match is made only when the case and length of a key is the same as that stored in the database.  No pattern matching is available.  If a key is not matched, a diagnostic message is produced. 

Options

−kBefore printing the value associated with a key, print the key followed by a colon (:).  This option is useful if the keys are not part of the values (e.g., ypservers map), or you specified so many keys that the output could be confusing. 

−tInhibit the translation of a map’s nickname to its corresponding mapname.  For example, ypmatch −t zippy passwd will fail because there is no map named passwd, while ypmatch zippy passwd will be translated to ypmatch zippy passwd.byname.

−dSpecify a domain other than the one returned by domainname(1).

−xDisplay the table that lists the nickname for each YP map. 

AUTHOR

Sun Microsystems, Inc. 

SEE ALSO

domainname(1), ypcat(1), ypserv(1M), ypfiles(4). 

INTERNATIONAL SUPPORT

8-bit data, messages

Hewlett-Packard Company  —  May 11, 2021

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