summaryrefslogtreecommitdiff
path: root/usr.bin/find/find.1
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-07-08 16:09:35 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-07-08 16:09:35 +0000
commitcd8ea8cdc894d70ddf43571501e038680691c29c (patch)
tree131fdbf8f5d79b1b82f9788eabc1069103107d4c /usr.bin/find/find.1
parentc5a66fdd2a472878fb5f7aee24ce086c099c6cc4 (diff)
Add a -flags option similar to -perm but for filke flags (ala
chflags). Adapted from FreeBSD.
Diffstat (limited to 'usr.bin/find/find.1')
-rw-r--r--usr.bin/find/find.119
1 files changed, 18 insertions, 1 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
index 95434a6e68a..30a8f3a18c9 100644
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: find.1,v 1.27 2000/06/07 15:25:30 deraadt Exp $
+.\" $OpenBSD: find.1,v 1.28 2000/07/08 16:09:33 millert Exp $
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -191,6 +191,23 @@ the current file.
The filename substituted for the string
.Qq {}
is not qualified.
+.It Xo
+.Ic -flags
+.Op Fl
+.Ar flags
+.Xc
+The
+.Ar flags
+are comma-separated symbolic file flags (see
+.Xr chflags 1
+for a list of valid flag names).
+If the flags are preceded by a dash
+.Pq Sq \- ,
+this primary evaluates to true if the file in question has at least
+one of the file flags specified by
+.Ar flags .
+If the flags are not preceded by a dash, this primary evaluates to true if the
+flags specified exactly match those of the file.
.It Ic -follow
Follow symbolic links.
.It Ic -fstype Ar type