Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

nd(1) OSS Shell and Utilities Reference Manual
-xdev Always TRUE; causes the nd command to not traverse down into a le system
different from the one on which the current pathname resides. If any -xdev expression is
specied, it applies to the entire expression even if the -xdev expression would not nor-
mally be evaluated.
The primaries can be combined using the following operators (in descending order of
precedence):
( expression )
TRUE if expression is TRUE.
! expression
The negation of a primary (! is the unary not operator).
expression [-a] expression
Concatenation of primaries (the and operation is implied by the juxtaposition of two pri-
maries or can be explicitly stated as -a). The second expression is not evaluated if the rst
expression is FALSE.
expression -o expression
Alternation of primaries (-o is the or operator). The second expression is not evaluated if
the rst expression is TRUE.
If no expression is present, -print is used as the expression; otherwise, if the given expression
does not contain any of the expressions -exec, -ok,or-print, the given expression is effectively
replaced by the following:
( expression )-print
The -user, -group, and -newer expressions each evaluate their respective arguments only once.
To avoid unpredictable results when using a range expression to match a class of characters, use a
character class expression rather than a standard range expression. For information about charac-
ter class expressions, see the reference page for the grep command.
Environment Variables
The following environment variables affect the execution of the nd command:
UTILSGE Species that HP extensions to the root directory should be omitted when the ini-
tial directory is root and a recursive operation occurs in an OSS shell command.
Application programs that test this variable might also honor its settings.
The UTILSGE value can be any of the following:
NOE Omit the /E directory.
NOG Omit the /G directory.
NOG:NOE Omit both the /G and /E directories.
The effect of assigning a value to the UTILSGE environment variable is the same
as specifying the -W NOG or -W NOE ag in the command.
EXAMPLES
1. To list all les in the le system with a given base lename, enter:
nd / -name .prole
This command searches the entire le system and writes the complete pathnames of all
les named .prole. The / (slash) tells the nd command to search the root directory and
3140 Hewlett-Packard Company 527188-003