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

Re: Why has "find ... -exec rm -i '{}' ';'" stopped working?



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.

-- 
Dave Carrigan
Seattle, WA, USA
dave@rudedog.org | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL

Attachment: signature.asc
Description: Digital signature


Reply to: