Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
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.
Access Control Lists (ACLs)
The -acl expression enables the user to search for access control list (ACL) entries. The expression |
TRUE if the file’s access control list matches an access control list pattern or contains optional |
ACL entries (see the acl(5) reference page). The -acl expression has three forms:
-acl aclpatt Match all files that have ACLs that include all (zero or more) pattern entries |
specified by the aclpatt pattern.
-acl =aclpatt Match a file only if its ACL includes all (zero or more) pattern entries specified by |
the aclpatt pattern, and every entry in its ACL is matched by at least one pattern |
entry specified in the aclpatt pattern.
-acl opt Match all files that have ACLs that include optional ACL entries. |
By default, -acl is TRUE for files that have access control lists that include all the access control |
list patterns in aclpatt. The ACL for a file can also contain unmatched entries. |
If aclpatt begins with =, the remainder of the string must match all entries in the access control list |
of the file. |
An aclpatt consists either of a type field, an ID field, and a mode field, or a type field and a mode |
field. The fields are separated by colons. You can specify multiple comma-separated aclpatts.|
The type field is one of user, group, class, other or *, optionally preceded by default:. The |
literals user, group, class, other, and default can be abbreviated to u, g, c, o, and d, respectively. |
3−140 Hewlett-Packard Company 527188-007