On Tue Aug 14 11:09:38 EDT 2007, Shawn McMahon <[log in to unmask]>
wrote:
> On Tue, 2007-08-14 at 10:08 -0400, Jon Lewis wrote:
>>
>> > find /ftp/traces -cmin +1440 -print | xargs rm -rf
>>
>> Adding -type f will probably solve it. That way, find will only
>> return files...not directories.
>>
>> find /ftp/traces -cmin +1440 -type f -print | xargs rm -rf
>
> And not strictly necessary, but to avoid errors causing xargs to
> do
> something wonky, I'd do:
>
> find /ftp/traces -cmin +1440 -type f -exec rm -rf {} \;
>
>
Thanks Shawn. Can you help me understand what "{} \;" does (how
to interpret it)?
~Mark Oden
|