Date: Tue, 07 Feb 2012 15:04:00 -0800 From: merlyn@stonehenge.com (Randal L. Schwartz) To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: 'rm' Can not delete files Message-ID: <86d39quty7.fsf@red.stonehenge.com> In-Reply-To: <4F31A260.20109@infracaninophile.co.uk> (Matthew Seaman's message of "Tue, 07 Feb 2012 22:14:56 %2B0000") References: <1237723287.20120207235924@yandex.ru> <4F31A260.20109@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Matthew" == Matthew Seaman <m.seaman@infracaninophile.co.uk> writes: Matthew> As you have discovered, it is very easy to overload the argument list. Matthew> There are many ways around this, but one of the best ones is to use Matthew> xargs(1). eg: Matthew> % ls -1 | xargs rm No need for the -1 there. Whenever ls is not going to the terminal, it defaults to classic -1 behavior. Compare: % ls with % ls | cat -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d39quty7.fsf>