Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
find(1) OSS Shell and Utilities Reference Manual
-xdev Always TRUE; causes the find command to not traverse down into a file system
different from the one on which the current pathname resides. If any -xdev expression is
specified, 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 first
expression is FALSE.
expression -o expression
Alternation of primaries (-o is the or operator). The second expression is not evaluated if
the first 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 find command:
UTILSGE Specifies 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 flag in the command.
EXAMPLES
1. To list all files in the file system with a given base filename, enter:
find / -name .profile
This command searches the entire file system and writes the complete pathnames of all
files named .profile. The / (slash) tells the find command to search the root directory and
3−140 Hewlett-Packard Company 527188-004