[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Bash Script



On Wed, 2007-07-11 at 10:37 +0200, Alexander Dalloz wrote:
> Andrew Kelly schrieb:
> > On Tue, 2007-07-10 at 19:46 -0500, John Pierce wrote:
> >> Thanks, for all of the suggestions.  I have been reading man find and xargs.
> > 
> > I'm curious, why pipe to xargs when find can handle things itself?
> > $ find /path -type f -exec chmod ugo-x {} \;
> > 
> > Andy
> 
> Because that opens a subshell for each of the findings. So depending on
> what you want to execute it "-exec" may have a bigger impact on your
> system's performance. At least it takes much longer to proceed.

Ah, yes, excellent point. Thanks.

Andy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]