summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/find.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/find/find.1')
-rw-r--r--usr.bin/find/find.130
1 files changed, 29 insertions, 1 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
index a5fc173..652011e 100644
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -33,6 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)find.1 8.7 (Berkeley) 5/9/95
+.\" $Id: find.1,v 1.9 1997/05/19 16:33:26 eivind Exp $
.\"
.Dd May 9, 1995
.Dt FIND 1
@@ -84,6 +85,7 @@ The
option causes the file information and file type (see
.Xr stat 2)
returned for each symbolic link to be those of the link itself.
+This is the default.
.It Fl X
The
.Fl X
@@ -142,6 +144,13 @@ information and the time
was started, rounded up to the next full 24\-hour period, is
.Ar n
24\-hour periods.
+.It Ic -delete
+Delete found files and/or directories. Always returns True. This executes
+from the current working directory as
+.Nm
+recurses down the tree. It will not attempt to delete a filename with a ``/''
+character in its pathname relative to "." for security reasons.
+Depth\-first traversal processing is implied by this option.
.It Ic -exec Ar utility Op argument ... ;
True if the program named
.Ar utility
@@ -273,11 +282,18 @@ It prints the pathname of the current file to standard output.
If none of
.Ic -exec ,
.Ic -ls ,
+.Ic -print0 ,
or
.Ic \&-ok
is specified, the given expression shall be effectively replaced by
.Cm \&( Ns Ar given\& expression Ns Cm \&)
.Ic -print .
+.It Ic -print0
+This primary always evaluates to true.
+It prints the pathname of the current file to standard output, followed by an
+.Tn ASCII
+.Tn NUL
+character (character code 0).
.It Ic -prune
This primary always evaluates to true.
It causes
@@ -411,7 +427,9 @@ The
and
.Fl X
options and the
-.Ic -inum
+.Ic -inum ,
+.Ic -print0 ,
+.Ic -delete ,
and
.Ic -ls
primaries are extensions to
@@ -459,3 +477,13 @@ These problems are handled by the
option and the
.Xr getopt 3
``--'' construct.
+.Pp
+The
+.Ic -delete
+primary do not interact well with other options that cause the filesystem
+tree traversal options to be changed.
+.Sh HISTORY
+A
+.Nm
+command appeared in
+.At v1 .
OpenPOWER on IntegriCloud