Date: Sat, 20 Nov 2004 13:19:15 -0500 (EST) From: Francisco Reyes <lists@natserv.com> To: Dennis Koegel <amf@hobbit.neveragain.de> Cc: freebsd-questions@freebsd.org Subject: Re: /bin/rm: Argument list too long. Message-ID: <20041120131805.X7533@zoraida.natserv.net> In-Reply-To: <20041119091938.GA964@neveragain.de> References: <Pine.BSO.4.56.0411190956490.18264@ux11.ltcm.net> <20041119091938.GA964@neveragain.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 19 Nov 2004, Dennis Koegel wrote: > find /foo/bar -type f -maxdepth 1 | xargs rm -n100 Although xargs is the most versatile solution for when having too many items listed, for just deleting find itself can do it.. find /foo/bar -n "<mask>" -delete
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041120131805.X7533>