Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
Re: [opensuse] /bin/rm: Argument list too long
  • From: Anders Johansson <ajh@xxxxxxxxxx>
  • Date: Wed, 26 Mar 2008 22:50:13 +0100
  • Message-id: <1206568213.20029.45.camel@xxxxxxxxxxxxxxxxxx>
On Wed, 2008-03-26 at 21:21 +0100, Per Jessen wrote:
Randall R Schulz wrote:

% find dirName(s) {findCriteria} -print0 |xargs -0 rm

By doing this, xargs essentially "batches up" maximal (w.r.t. the
argument size limit) sets of file names and invokes rm only as many
times as necessary.

Randall, that has got to be one of the coolest pieces of advice I've
seen here. "man xargs" doesn't even mention it.

huh? It's what xargs does. It's the basic functionality of the program

Anders

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >