version 1.83, 2012/01/02 23:19:45 |
version 1.84, 2012/01/03 08:42:00 |
|
|
Where more than one of these options is specified, |
Where more than one of these options is specified, |
the last option given overrides the others. |
the last option given overrides the others. |
.Sh PRIMARIES |
.Sh PRIMARIES |
.Bl -tag -width Ds |
.Bl -tag -width Ds -compact |
.It Ic -amin Ar n |
.It Ic -amin Ar n |
True if the difference between the file last access time and the time |
True if the difference between the file last access time and the time |
.Nm |
.Nm |
was started, rounded up to the next full minute, is |
was started, rounded up to the next full minute, is |
.Ar n |
.Ar n |
minutes. |
minutes. |
|
.Pp |
.It Ic -anewer Ar file |
.It Ic -anewer Ar file |
True if the current file has a more recent last access time than |
True if the current file has a more recent last access time than |
.Ar file . |
.Ar file . |
|
.Pp |
.It Ic -atime Ar n |
.It Ic -atime Ar n |
True if the difference between the file last access time and the time |
True if the difference between the file last access time and the time |
.Nm |
.Nm |
was started, rounded up to the next full 24-hour period, is |
was started, rounded up to the next full 24-hour period, is |
.Ar n |
.Ar n |
24-hour periods. |
24-hour periods. |
|
.Pp |
.It Ic -cmin Ar n |
.It Ic -cmin Ar n |
True if the difference between the time of last change of file status |
True if the difference between the time of last change of file status |
information and the time |
information and the time |
|
|
was started, rounded up to the next full minute, is |
was started, rounded up to the next full minute, is |
.Ar n |
.Ar n |
minutes. |
minutes. |
|
.Pp |
.It Ic -cnewer Ar file |
.It Ic -cnewer Ar file |
True if the current file has a more recent last change time than |
True if the current file has a more recent last change time than |
.Ar file . |
.Ar file . |
|
.Pp |
.It Ic -ctime Ar n |
.It Ic -ctime Ar n |
True if the difference between the time of last change of file status |
True if the difference between the time of last change of file status |
information and the time |
information and the time |
|
|
was started, rounded up to the next full 24-hour period, is |
was started, rounded up to the next full 24-hour period, is |
.Ar n |
.Ar n |
24-hour periods. |
24-hour periods. |
|
.Pp |
.It Ic -depth |
.It Ic -depth |
This primary always evaluates to true. |
This primary always evaluates to true. |
The same as specifying the |
The same as specifying the |
.Fl d |
.Fl d |
option. |
option. |
|
.Pp |
.It Ic -empty |
.It Ic -empty |
True if the current file or directory is empty. |
True if the current file or directory is empty. |
|
.Pp |
.It Xo |
.It Xo |
.Ic -exec Ar utility |
.Ic -exec Ar utility |
.Op argument ... |
.Op argument ... |
|
|
.It Xo |
.It Xo |
.Ic -exec Ar utility |
.Ic -exec Ar utility |
.Op argument ... |
.Op argument ... |
.No {} |
.No {} + |
+ |
|
.Xc |
.Xc |
Execute the specified |
Execute the specified |
.Ar utility . |
.Ar utility . |
|
|
appears anywhere in the utility name or the |
appears anywhere in the utility name or the |
arguments it is replaced by the pathname of the current file. |
arguments it is replaced by the pathname of the current file. |
.Pp |
.Pp |
If terminated by a plus sign |
If terminated by a plus sign, |
.Pq Dq \&+ , |
|
the pathnames for which the |
the pathnames for which the |
primary is evaluated are aggregated into sets, and |
primary is evaluated are aggregated into sets, and |
.Ar utility |
.Ar utility |
will be invoked once per set, similar to |
will be invoked once per set, similar to |
.Xr xargs 1 . |
.Xr xargs 1 . |
If any invocation exits with non-zero exit status, then |
If any invocation exits with a non-zero exit status, then |
.Nm |
.Nm |
will eventually do so as well, but this does not cause |
will eventually do so as well, but this does not cause |
.Nm |
.Nm |
to exit early. |
to exit early. |
The string |
The string |
.Dq {} |
.Qq {} |
must appear, and must appear last. |
must appear, and must appear last. |
Each set is limited to no more than 5,000 pathnames, |
Each set is limited to no more than 5,000 pathnames, |
and is also limited such that the invocation of |
and is also limited such that the invocation of |
.Ar utility |
.Ar utility |
does not exceed |
does not exceed |
.Dv ARG_MAX . |
.Dv ARG_MAX . |
|
.Pp |
.It Xo |
.It Xo |
.Ic -execdir Ar utility |
.Ic -execdir Ar utility |
.Op argument ... |
.Op argument ... |
|
|
The filename substituted for the string |
The filename substituted for the string |
.Qq {} |
.Qq {} |
is not qualified. |
is not qualified. |
|
.Pp |
.It Xo |
.It Xo |
.Ic -flags |
.Ic -flags |
.Oo - Oc Ns Ar flags |
.Oo - Oc Ns Ar flags |
|
|
are set in the file's flags. |
are set in the file's flags. |
If the flags are not preceded by a dash, this primary evaluates to true if the |
If the flags are not preceded by a dash, this primary evaluates to true if the |
flags specified exactly match those of the file. |
flags specified exactly match those of the file. |
|
.Pp |
.It Ic -follow |
.It Ic -follow |
This primary always evaluates to true. |
This primary always evaluates to true. |
The same as specifying the |
The same as specifying the |
.Fl H |
.Fl H |
option. |
option. |
|
.Pp |
.It Ic -fstype Ar type |
.It Ic -fstype Ar type |
True if the file is contained in a file system of type |
True if the file is contained in a file system of type |
.Ar type . |
.Ar type . |
|
|
.Nm |
.Nm |
is being executed whereas the latter matches any file system which is |
is being executed whereas the latter matches any file system which is |
mounted read-only. |
mounted read-only. |
|
.Pp |
.It Ic -group Ar gname |
.It Ic -group Ar gname |
True if the file belongs to the group |
True if the file belongs to the group |
.Ar gname . |
.Ar gname . |
|
|
is numeric and there is no such group name, then |
is numeric and there is no such group name, then |
.Ar gname |
.Ar gname |
is treated as a group ID. |
is treated as a group ID. |
|
.Pp |
.It Ic -iname Ar pattern |
.It Ic -iname Ar pattern |
Identical to the |
Identical to the |
.Ic -name |
.Ic -name |
primary except that the matching is done in a case insensitive manner. |
primary except that the matching is done in a case insensitive manner. |
|
.Pp |
.It Ic -inum Ar n |
.It Ic -inum Ar n |
True if the file has inode number |
True if the file has inode number |
.Ar n . |
.Ar n . |
|
.Pp |
.It Ic -links Ar n |
.It Ic -links Ar n |
True if the file has |
True if the file has |
.Ar n |
.Ar n |
links. |
links. |
|
.Pp |
.It Ic -ls |
.It Ic -ls |
This primary always evaluates to true. |
This primary always evaluates to true. |
The following information for the current file is written to standard output: |
The following information for the current file is written to standard output: |
|
|
.Dq -\*(Gt . |
.Dq -\*(Gt . |
The format is identical to that produced by |
The format is identical to that produced by |
.Dq ls -dils . |
.Dq ls -dils . |
|
.Pp |
.It Ic -maxdepth Ar n |
.It Ic -maxdepth Ar n |
True if the current search depth is less than or equal to what is specified in |
True if the current search depth is less than or equal to what is specified in |
.Ar n . |
.Ar n . |
|
.Pp |
.It Ic -mindepth Ar n |
.It Ic -mindepth Ar n |
True if the current search depth is at least what is specified in |
True if the current search depth is at least what is specified in |
.Ar n . |
.Ar n . |
|
.Pp |
.It Ic -mmin Ar n |
.It Ic -mmin Ar n |
True if the difference between the file last modification time and the time |
True if the difference between the file last modification time and the time |
.Nm |
.Nm |
was started, rounded up to the next full minute, is |
was started, rounded up to the next full minute, is |
.Ar n |
.Ar n |
minutes. |
minutes. |
|
.Pp |
.It Ic -mtime Ar n |
.It Ic -mtime Ar n |
True if the difference between the file last modification time and the time |
True if the difference between the file last modification time and the time |
.Nm |
.Nm |
was started, rounded up to the next full 24-hour period, is |
was started, rounded up to the next full 24-hour period, is |
.Ar n |
.Ar n |
24-hour periods. |
24-hour periods. |
|
.Pp |
.It Ic -name Ar pattern |
.It Ic -name Ar pattern |
True if the last component of the pathname being examined matches |
True if the last component of the pathname being examined matches |
.Ar pattern , |
.Ar pattern , |
which may use any of the special characters documented in |
which may use any of the special characters documented in |
.Xr glob 7 . |
.Xr glob 7 . |
|
.Pp |
.It Ic -newer Ar file |
.It Ic -newer Ar file |
True if the current file has a more recent last modification time than |
True if the current file has a more recent last modification time than |
.Ar file . |
.Ar file . |
|
.Pp |
.It Ic -nogroup |
.It Ic -nogroup |
True if the file belongs to an unknown group. |
True if the file belongs to an unknown group. |
|
.Pp |
.It Ic -nouser |
.It Ic -nouser |
True if the file belongs to an unknown user. |
True if the file belongs to an unknown user. |
|
.Pp |
.It Xo |
.It Xo |
.Ic -ok Ar utility |
.Ic -ok Ar utility |
.Op argument ... |
.Op argument ... |
|
|
value of the |
value of the |
.Ic ok |
.Ic ok |
expression is false. |
expression is false. |
|
.Pp |
.It Ic -path Ar pattern |
.It Ic -path Ar pattern |
True if the pathname being examined matches |
True if the pathname being examined matches |
.Ar pattern , |
.Ar pattern , |
|
|
.Pq Ql / |
.Pq Ql / |
are treated as normal characters and do not have to be |
are treated as normal characters and do not have to be |
matched explicitly. |
matched explicitly. |
|
.Pp |
.It Xo |
.It Xo |
.Ic -perm |
.Ic -perm |
.Oo - Oc Ns Ar mode |
.Oo - Oc Ns Ar mode |
|
|
If the mode is not preceded by a dash, this primary evaluates to |
If the mode is not preceded by a dash, this primary evaluates to |
true if the bits in the mode exactly match the file's mode bits. |
true if the bits in the mode exactly match the file's mode bits. |
Note, the first character of a symbolic mode may not be a dash. |
Note, the first character of a symbolic mode may not be a dash. |
|
.Pp |
.It Ic -print |
.It Ic -print |
This primary always evaluates to true. |
This primary always evaluates to true. |
It prints the pathname of the current file to standard output, followed |
It prints the pathname of the current file to standard output, followed |
by a newline |
by a newline |
.Pq Ql \en |
.Pq Ql \en |
character. |
character. |
|
.Pp |
.It Ic -print0 |
.It Ic -print0 |
This primary always evaluates to true. |
This primary always evaluates to true. |
It prints the pathname of the current file to standard output, followed |
It prints the pathname of the current file to standard output, followed |
|
|
.Fl 0 |
.Fl 0 |
option to |
option to |
.Xr xargs 1 . |
.Xr xargs 1 . |
|
.Pp |
.It Ic -prune |
.It Ic -prune |
This primary always evaluates to true. |
This primary always evaluates to true. |
It causes |
It causes |
|
|
primary has no effect if the |
primary has no effect if the |
.Fl d |
.Fl d |
option was specified. |
option was specified. |
|
.Pp |
.It Ic -size Ar n Ns Op Cm c |
.It Ic -size Ar n Ns Op Cm c |
True if the file's size, rounded up, in 512-byte blocks is |
True if the file's size, rounded up, in 512-byte blocks is |
.Ar n . |
.Ar n . |
|
|
file's size is |
file's size is |
.Ar n |
.Ar n |
bytes. |
bytes. |
|
.Pp |
.It Ic -type Ar t |
.It Ic -type Ar t |
True if the file is of the specified type. |
True if the file is of the specified type. |
Possible file types are as follows: |
Possible file types are as follows: |
|
|
is numeric and there is no such user name, then |
is numeric and there is no such user name, then |
.Ar uname |
.Ar uname |
is treated as a user ID. |
is treated as a user ID. |
|
.Pp |
.It Ic -xdev |
.It Ic -xdev |
This primary always evaluates to true. |
This primary always evaluates to true. |
The same as specifying the |
The same as specifying the |