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

find(1) OSS Shell and Utilities Reference Manual
The argument number is a decimal integer that can be specified as +number (more than
number), -number (less than number), or number (exactly number).
-atime number
TRUE if the file was accessed in the past number days. The argument number is a
decimal integer that can be specified as +number (more than number), -number (less
than number), or number (exactly number). For example -atime 3 is TRUE if the file
was accessed any time in the period from 72 to 48 hours ago.
-mtime numbe r
TRUE if the file was modified in the past number days. The argument number is a
decimal integer that can be specified as +number (more than number), -number (less
than number), or number (exactly number).
-ctime number
TRUE if the file inode was changed in the past number days. The argument number is a
decimal integer that can be specified as +number (more than number), -number (less
than number), or number (exactly number).
-exec command
TRUE if the command runs and returns a 0 (zero) value as exit status. The end of com-
mand must be punctuated by a quoted or escaped ; (semicolon). The command parame-
ter { } is replaced by the current pathname. If shell quoting is used in
command,
each
word in the command must be quoted separately. Also, the characters ; (semicolon) and
{}(braces) must appear as separate words on a command line.
The current directory for the invocation of command is the same as the current directory
when the find command was started.
-ok command
Equivalent to the -exec expression, except that the find command first asks you whether
it should start command. If your response begins with y, or the locale’s equivalent of a
y, command is started. If the response is negative, command is not invoked and the
expression evaluates as FALSE. The end of command must be punctuated by a quoted
or escaped semicolon. If shell quoting is used in command, each word in the command
must be quoted separately. Also, the characters ; (semicolon) and {}(braces) must
appear as separate words on a command line.
-print Always TRUE; causes the current pathname to be displayed. The find command
assumes a -print expression, unless the -exec, ls,or-ok expressions are present.
-newer file
TRUE if the current file was modified more recently than the file indicated by file.
-depth Always TRUE. This expression causes the descent of the directory hierarchy to be done
so that all entries in a directory are affected before the directory itself. This expression
can be useful when find is used with the pax utility to transfer files contained in direc-
tories without write permission.
If the -depth expression is not specified, all entries in a directory are affected after the
directory itself. If -depth is specified, it applies to the entire expression, even if the -
depth primary would not normally be evaluated.
\( expression \)
TRUE if expression is TRUE.
3142 Hewlett-Packard Company 527188-021