version 1.41, 2004/01/23 19:38:13 |
version 1.42, 2004/02/24 07:20:38 |
|
|
.Nd walk a file hierarchy |
.Nd walk a file hierarchy |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm find |
.Nm find |
.Op Fl dHhLXxW |
.Op Fl dHhLWXx |
.Op Fl f Ar file |
.Op Fl f Ar file |
.Ar file Op Ar ... |
.Ar file Op Ar ... |
.Op Ar expression |
.Op Ar expression |
|
|
link, not the link itself. |
link, not the link itself. |
If the referenced file does not exist, the file information and type will |
If the referenced file does not exist, the file information and type will |
be for the link itself. |
be for the link itself. |
|
.It Fl W |
|
Let |
|
.Nm |
|
take whiteouts into account when scanning directories. |
.It Fl X |
.It Fl X |
Permit |
Permit |
.Nm |
.Nm |
|
|
.Nm |
.Nm |
from descending into directories that have a device number different |
from descending into directories that have a device number different |
than that of the file from which the descent began. |
than that of the file from which the descent began. |
.It Fl W |
|
Let |
|
.Nm |
|
take whiteouts into account when scanning directories. |
|
.El |
.El |
.Sh PRIMARIES |
.Sh PRIMARIES |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
|
|
.Sh EXAMPLES |
.Sh EXAMPLES |
The following examples are shown as given to the shell: |
The following examples are shown as given to the shell: |
.Bl -tag -width findx |
.Bl -tag -width findx |
.It Li "$ find / \e! -name \*q*.c\*q -print" |
.It Li "$ find / \e! -name '*.c' -print" |
Print out a list of all the files whose names do not end in |
Print out a list of all the files whose names do not end in |
.Dq \&.c . |
.Dq \&.c . |
.It Li "$ find / -newer ttt -user wnj -print" |
.It Li "$ find / -newer ttt -user wnj -print" |
Print out a list of all the files owned by user |
Print out a list of all the files owned by user |
.Dq wnj |
.Dq wnj |
that are newer |
that are newer |
than the file |
than the file |
.Dq ttt . |
.Dq ttt . |
.It Li "$ find / \e! \e( -newer ttt -user wnj \e) -print" |
.It Li "$ find / \e! \e( -newer ttt -user wnj \e) -print" |
Print out a list of all the files which are not both newer than |
Print out a list of all the files which are not both newer than |
.Dq ttt |
.Dq ttt |
and owned by |
and owned by |
.Dq wnj . |
.Dq wnj . |
.It Li "$ find / \e( -newer ttt -or -user wnj \e) -print" |
.It Li "$ find / \e( -newer ttt -or -user wnj \e) -print" |
Print out a list of all the files that are either owned by |
Print out a list of all the files that are either owned by |
.Dq wnj |
.Dq wnj |
or |
or |
that are newer than |
that are newer than |
.Dq ttt . |
.Dq ttt . |
.It Li "$ find / \e! -fstype local -prune -or -name '*.core' -print" |
.It Li "$ find / \e! -fstype local -prune -or -name '*.core' -print" |
Print out a list of all core files on local file systems. |
Print out a list of all core files on local file systems. |
.El |
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |