The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: Batch commands
Author: k 
Date:   02-02-03 18:09

Dan Langille wrote:
> Thanks. Why will that speed it up?

Apparently some (all? ..not sure) SysV versions of find will
execute a single command and pass to it the file name arguments rather than executing the command for each file name found.

So a command of:
find . -exec chmod u+w {} +
will execute a single chmod command and pass to it the arguments
rather than doing a chmod for each filename.

I didn't know at the time I posted that it doesn't work on FBSD
but if anyone finds themselves at a SysV system, they may want to try it out.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Batch commands   new
k 30-01-03 18:03 
 Re: Batch commands   new
Dan Langille 31-01-03 02:53 
 Re: Batch commands   new
k 31-01-03 04:46 
 Re: Batch commands   new
k 02-02-03 18:09 
 Re: Batch commands   new
Rob Robinson 10-02-04 17:25 
 Re: Batch commands   new
satimis 04-06-04 03:26 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum