On Tue, 2002-08-13 at 13:32, Visser, Martin (Sydney) wrote:
> find has the built in ability to execute commands on each found file, avoiding any 
>shell globbing or scaling issue.
> 
> find ./ -type -maxdepth 1 -exec convertfile {} \;
> 
> The {} matches the file name, and \; delineates the command to be executed
> 

Very neat but VERY slow.

You spawn a new process per file you want to do - useful in some
circumstances but not so in things like deletes etc.

A for loop with xargs(1) will ease your pain in those circumstances.

Greeno
-- 
Tony Green <[EMAIL PROTECTED]>
Tel       :   +61-(0)2-9500-9996    

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to