MPE/iX Shell and Utilities Reference Manual, Vol 1

find(1) MPE/iX Shell and Utilities find(1)
NAME
find — find files within file tree
SYNOPSIS
find directory ... expression
DESCRIPTION
Note: The MPE/iX implementation of this utility does not function exactly as this man page
describes. For details, see the MPE/iX NOTES section at the end of this man page.
find walks down the given file hierarchy starting at directory, and finds files which match
the criteria given by expression. Each directory, file, and special file is checked against
expression. If you use the –exec, –ok,or–cpio primaries, expression has the side-effect of
invoking a specified command on each file found. A non-existent expression or an expression
with no side-effects automatically uses the –print primary to display the name of any file
that matches the criteria of expression.
find builds expression from a set of primaries and operators; juxtaposition of two primaries
implies logical AND operator. You can group primaries and operators using parentheses.
Note: Parentheses are shell metacharacters. To use them in expression, you must quote them.
You must delimit all primaries, operators, numbers, arguments, and parentheses with white
space. Each number noted in the primary list is a decimal number, optionally preceded by a
plus (+) or minus (-) sign. If a number is given without a sign, find tests for equality; a plus
sign implies greater than or older than and a minus sign implies less than or newer than.
Operators
find accepts the following operators:
–a Use between primaries for logical AND. This operator can be omitted with the same
result since logical AND is assumed when no operator is used between two pri-
maries.
–o Use between primaries for logical OR.
! Precede expression with this operator to negate it.
Primaries
find accepts the following primaries:
–atime number
matches if someone accessed the file during the 24-hour period beginning number
days ago.
Commands and Utilities 1-231