Module Name: src
Committed By: apb
Date: Sat May 17 11:31:40 UTC 2014
Modified Files:
src/usr.bin/find: find.1
Log Message:
Add an example with find ... -exec sh -c ....
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/usr.bin/find/find.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/find/find.1
diff -u src/usr.bin/find/find.1:1.80 src/usr.bin/find/find.1:1.81
--- src/usr.bin/find/find.1:1.80 Fri Feb 8 12:50:51 2013
+++ src/usr.bin/find/find.1 Sat May 17 11:31:40 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: find.1,v 1.80 2013/02/08 12:50:51 wiz Exp $
+.\" $NetBSD: find.1,v 1.81 2014/05/17 11:31:40 apb Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" from: @(#)find.1 8.7 (Berkeley) 5/9/95
.\"
-.Dd August 26, 2012
+.Dd May 17, 2014
.Dt FIND 1
.Os
.Sh NAME
@@ -783,6 +783,8 @@ but do not print them.
.It Li "find / \e( \-newer ttt \-or \-user wnj \e) \-ls \-exit 1"
Same as above, but list the first file matching the criteria before exiting
with a value of 1.
+.It Li "find . \-type f \-exec sh \-c 'file=\*[q]$1\*[q]; ...;' - {} \;"
+Perform an arbitrarily complex shell command for every file.
.El
.Sh SEE ALSO
.Xr chflags 1 ,