diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-10-11 12:26:01 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-10-11 12:26:01 +0000 |
commit | 718c9ff733977ea367e37869e02da1f772d32b08 (patch) | |
tree | 4f5318a6741071e39b1bef02b08ba95a39596ed3 /usr.bin | |
parent | 89f6c692bfc082f80682db21f8c3774119af8522 (diff) |
Suggest to use xargs(1) and give an example; started by jmc, ok jmc@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/find/find.1 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index 2bf62dfb081..0842647ddaf 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: find.1,v 1.62 2006/10/11 11:46:04 jmc Exp $ +.\" $OpenBSD: find.1,v 1.63 2006/10/11 12:26:00 otto Exp $ .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -188,6 +188,14 @@ arguments it is replaced by the pathname of the current file. will be executed from the directory from which .Nm was executed. +.Pp +Since +.Ar utility +is executed every time a match is made, +it is often more efficient to pipe the output of +.Nm +to +.Xr xargs 1 . .It Xo .Ic -execdir Ar utility .Op argument ... @@ -534,6 +542,8 @@ ending in a dot and single digit, but skip directory Find and remove all *.jpg files in the current working directory: .Pp .Dl "$ find . -name \e*.jpg -exec rm {} \e;" +or +.Dl "$ find . -name \e*.jpg | xargs rm" .Sh SEE ALSO .Xr chflags 1 , .Xr chmod 1 , |