autoconf
[Top][All Lists]
Advanced

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

Re: Please help


From: Andreas Schwab
Subject: Re: Please help
Date: Fri, 26 Oct 2007 12:58:55 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

Harlan Stenn <address@hidden> writes:

> Bob,
>
>> Bob Proulx wrote:
>> >   find . -type f -print0 | xargs -r0 touch --reference .
>> >   make clean
>> >   make
>> 
>> That was cut from an old saved message.  I will update it to the
>> current find use avoiding the -print0 and say that I should have said
>> this instead:
>> 
>>   find . -type f -exec touch --reference . {} +
>
> I thought xargs was *significantly* faster than exec.

Note the trailing '+'.  This makes it essentially equivalent to the
above use with xargs, and even faster than that.

> And I haven't looked to see if '-exec ... {}' is "safe" for filename
> characters the same way -print0 ... is.

There is no shell involved in -exec, so it is safe for every filename.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]