summaryrefslogtreecommitdiff
path: root/usr.bin/find/find.1
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2006-10-10 10:17:37 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2006-10-10 10:17:37 +0000
commit328bde5636dac171ef413058d99e474d50c330b8 (patch)
treede67a45099b5a7ac80bc09c7c964d6af9be56423 /usr.bin/find/find.1
parent9c7426abc98cb714fc9a9e7da95a424324fb63d5 (diff)
add an example of -exec {} and remove a less useful example; ok otto
Diffstat (limited to 'usr.bin/find/find.1')
-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