To search through the first column, use:
nismatch string tablename nisgrep reg-exp tablename |
To search through a particular column, use:
nismatch column=string tablename nisgrep column=reg-exp tablename |
To search through multiple columns, use:
nismatch column=string tablename ...\ nismatch [column=string,...],tablename nisgrep column=reg-exp ... \ tablename |
Option |
Description |
---|---|
-c |
Count. Instead of the entries themselves, displays a count of the entries that matched the search criteria. |
-h |
Header. Displays a header line above the entries, listing the name of each column. |
-M |
Master. Displays only the entries of the table stored on the master server. This ensures you get the most up-to-date information and should be used only for debugging. |