Andrew Schulman wrote:

> 
>> On Tue, Jul 05, 2005 at 05:51:07AM -0400, Andrew Schulman wrote:
>> 
>>> find ... -print0 | xargs -0r rm -i
>> 
>> This won't work because rm -i reads for confirmation from stdin and rm
>> has no stdin when it's run via xargs.
> 
> Hm, you're right.  Well one alternative that will definitely work is
> 
> find ... -ok rm '{}' ';'
> 
> but this looks different to the user and so may be less desirable.

The prompts look a little different but it works.  I'd forgotten about the
-ok option.

Thanks!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to