Date: Sat, 11 Feb 2012 07:33:27 -0800 From: perryh@pluto.rain.com To: freebsd-questions@freebsd.org Subject: Re: 'rm' Can not delete files Message-ID: <4f368a47.b9IiheSL9TAxtlPw%perryh@pluto.rain.com> In-Reply-To: <4F3541D6.5080505@infracaninophile.co.uk> References: <1237723287.20120207235924@yandex.ru> <4F31A260.20109@infracaninophile.co.uk> <20120207231716.31aa8bc3@gumby.homeunix.com> <20120209032544.GA58560@ozzmosis.com> <CAE7N2kdmbm_5=c8oNknYQE5HOrvVjtfS4XTGYvxTjEQVbGr-7Q@mail.gmail.com> <4F3541D6.5080505@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Seaman <freebsd-questions@infracaninophile.co.uk> wrote: > >>> ls -1 | xargs rm > > >> but be aware that that wont work for filenames with spaces. > > True. Can't do that using ls to generate the list of filenames as > there is no option to generate a null-separated list amongst ls's > multitudinous collection. It can, however, be done indirectly :) $ ls -1 | tr '\012' '\000' | xargs -0 rm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f368a47.b9IiheSL9TAxtlPw%perryh>