find.1 (2010 09)
f
find(1) find(1)
-local
True if the file physically resides on the local system. This does not restrict the search to only
files which physically reside on the local system, it merely matches such files. See EXAMPLES.
-mountstop
Identical to -xdev. This primary is provided for backward compatibility only.
-xdev
is pre-
ferred over
-mountstop.
-mtime n
True if the file modification time subtracted from the initialization time is n-1 to n multiples of
24 h. The initialization time shall be a time between the invocation of the
find utility and the
first access by that invocation of the
find utility to any file specified in its path operands.
-name file
True if pattern file matches the last component of the current file name. Pattern is matched
according to Pattern Matching Notation for file name expansion. Pattern should be escaped
(using backslash) or quoted when find is invoked from the shell, to prevent the shell from
expanding any metacharacters. Pattern may contain supplementary code set characters.
-ncpio
Same as -cpio but adds the -c option to
cpio. The use of -ncpio implies -depth.Always
true.
-newer file
True if the current file has been modified more recently than the argument file .
-newer[tv1[tv2]] file
True if the indicated time value (tv1 ) of the current file is newer than the indicated time value
(tv2 )offile . The time values tv1 and tv2 are each selected from the set of characters:
a The time the file was last accessed
c The time the inode of the file was last modified
m The time the file was last modified
If the tv2 character is omitted, it defaults to
m. Note that the -newer option is equivalent to
-newermm.
Syntax examples;
-newera file
-newermc file
-nogroup
True if the file belongs to a group ID that is not listed in the group database. See group(4).
-nouser
True if the file belongs to a user ID that is not listed in the password database. See passwd (4).
-ok cmd
Same as -exec except that the generated command line is printed with a question mark first,
and is executed only if the user responds by typing y. The form of the affirmative response is
locale dependent: y in the C locale, see LANG on environ (5). The end of cmd must be punctuated
by a semicolon (;) (semicolon is special to the shell and must be escaped). cmd may contain sup-
plementary code set characters.
-only This is a positive-logic version of -prune.A-prune is performed after every directory, unless
-only is successfully evaluated for that directory. As an example, the following three com-
mands are equivalent:
find . -fsonly hfs -print
find . -print -fstype hfs -only
find . -print ! -fstype hfs -prune
Note, however, that -only is useless if the -depth option has also been given. Always true.
-path file
Same as -name except the full path (as would be output by -print) is used instead of just the
base name. Note that / characters are not treated as a special case. For example, */.pro-
file matches ./home/fred/.profile.
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3