Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
Re: [opensuse] /bin/rm: Argument list too long
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Wed, 26 Mar 2008 21:21:49 +0100
  • Message-id: <fseb8t$en5$1@xxxxxxxxxxxxxxxx>
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.

/Per Jessen, Z├╝rich

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

< Previous Next >