[CentOS] [Fwd: Re: The directory that I am trying to clean up is huge]

Mon Jan 25 23:43:19 UTC 2010
Ross Walker <rswwalker at gmail.com>

On Jan 25, 2010, at 10:48 AM, Corey Chandler <lists at sequestered.net>  
wrote:

> On 1/25/10 9:33 AM, Robert Nichols wrote:
>>
>> When using the -exec action with the ";" terminator, the constructed
>> command line always contains the path for exactly one matched file.
>> Try it.  Run "find /usr -exec echo {} ;" and see that you get one
>> path per line and output begins almost instantly.
>
> Don't forget to backspace delimit the semicolon; the proper way to get
> data out of this example would be:
>
> find /usr -exec echo {} \;

And don't forget to escape the curly braces which are expanded in some  
shells:

# find /usr -exec echo \{\} \;

-Ross