version 1.62, 2006/10/11 11:46:04 |
version 1.63, 2006/10/11 12:26:00 |
|
|
will be executed from the directory from which |
will be executed from the directory from which |
.Nm |
.Nm |
was executed. |
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 |
.It Xo |
.Ic -execdir Ar utility |
.Ic -execdir Ar utility |
.Op argument ... |
.Op argument ... |
|
|
Find and remove all *.jpg files in the current working directory: |
Find and remove all *.jpg files in the current working directory: |
.Pp |
.Pp |
.Dl "$ find . -name \e*.jpg -exec rm {} \e;" |
.Dl "$ find . -name \e*.jpg -exec rm {} \e;" |
|
or |
|
.Dl "$ find . -name \e*.jpg | xargs rm" |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr chflags 1 , |
.Xr chflags 1 , |
.Xr chmod 1 , |
.Xr chmod 1 , |