summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2006-10-10 10:17:36 +0000
committerjmc <jmc@openbsd.org>2006-10-10 10:17:36 +0000
commitb6d3f25f1b26a60cd6f6adf01b2e0e29f065849f (patch)
treed44df966ecd8c25dd404578204417bca07a5955a
parentsleep before retrying (not after) since sleep changes errno; fixes (diff)
downloadwireguard-openbsd-b6d3f25f1b26a60cd6f6adf01b2e0e29f065849f.tar.xz
wireguard-openbsd-b6d3f25f1b26a60cd6f6adf01b2e0e29f065849f.zip
add an example of -exec {} and remove a less useful example; ok otto
-rw-r--r--usr.bin/find/find.110
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
index 004e8e0abf8..0a1df094da9 100644
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: find.1,v 1.57 2006/10/05 07:52:30 otto Exp $
+.\" $OpenBSD: find.1,v 1.58 2006/10/10 10:17:36 jmc Exp $
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -512,13 +512,9 @@ and owned by
.Pp
.Dl "$ find / \e! \e( -newer ttt -user wnj \e) -print"
.Pp
-Print out a list of all the files that are either owned by
-.Dq wnj
-or
-that are newer than
-.Dq ttt :
+Find and remove all *.jpg files in the current working directory:
.Pp
-.Dl "$ find / \e( -newer ttt -or -user wnj \e) -print"
+.Dl "$ find . -name \e*\e.jpg -exec rm {} \e;"
.Pp
Print out a list of all core files on local file systems:
.Pp