Solaris Naming Administration Guide

Searching Multiple Columns

To search for entries with matches in two or more columns, use the following syntax:

nismatch [-h] [column=string, ... \
nisgrep [-h] column=reg-exp ... \

This example searches for entries whose second column has a value of SanFran and whose third column has a value of jhill:

rootmaster% nismatch -h [Site=SanFran,Name=jhill],
rootmaster% nisgrep -h Site=SanFran Name=jhill