The fnsearch command displays the names and, optionally, the attributes and references of objects bound at or below a composite name whose attributes satisfy the given search criteria.
For example:
To list the users and their attributes who have an attribute called realname:
% fnsearch user realname |
To list the users with the attribute realname whose value is Ravi Chattha:
% fnsearch user "realname == 'Ravi Chattha'" |
The fnsearch command uses the common Boolean operators. Note the use of double and single quotes and double equals sign in the above example.