On Fri, 21 May 2010 21:49:49 -0400, Daniel D Jones wrote: > find -name *.ext | xargs -0 rm > > I get the result: > > rm: cannot remove `Long File Name One.ext\nLong File Name Two.ext\nLong > File Name Three.ext\n': File name too long.
xargs can suck with anything but plain ASCII-without-spaces filenames., and it quite unnecessary here. find -name *.ext -exe rm "{}" \; or maybe even find -name *.ext -exe rm "{}" + -- Neil Bothwick He who asks a question is a fool for a minute, He who doesn't ask is a fool for a lifetime.
signature.asc
Description: PGP signature