[ILUG] Help!

Padraig Brady padraig.brady at corvil.com
Tue Sep 28 16:33:56 IST 2004


Paul Jakma wrote:
> On Tue, 28 Sep 2004, Kenn Humborg wrote:
> 
>>   find . -name \*.scf -o -name \*.ab1 | xargs cp --target ./final_folder
>>
>> cp's --target-directory option was added to make it xargs-friendly.
> 
> 
> why not:
> 
> find . \(-name '*.scf' -o name '*.ab1'\) -a -exec cp {} <final dir>\;
> 
> ?
> 
> I'm sure xargs is great and all that, but what's the point of it exactly 
> when ye good olde POSIX find has -exec? ;)

Because in this example, there are 100,000 cp processes started.

Pádraig.

> 
> regards,




More information about the ILUG mailing list