Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/find Add an example with find ... -exec sh -c ....



details:   https://anonhg.NetBSD.org/src/rev/480b9aa663ca
branches:  trunk
changeset: 329267:480b9aa663ca
user:      apb <apb%NetBSD.org@localhost>
date:      Sat May 17 11:31:40 2014 +0000

description:
Add an example with find ... -exec sh -c ....

diffstat:

 usr.bin/find/find.1 |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 14876689b164 -r 480b9aa663ca usr.bin/find/find.1
--- a/usr.bin/find/find.1       Sat May 17 09:30:07 2014 +0000
+++ b/usr.bin/find/find.1       Sat May 17 11:31:40 2014 +0000
@@ -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 @@
 .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 ,



Home | Main Index | Thread Index | Old Index