sh scripting question

John Levine johnl at
Mon Oct 19 00:34:42 UTC 2020

In article <20201018155812796938832 at> you write:
>> Sometimes that's better, sometimes not.  I have find scripts that delete
>> stale files, and it is a lot faster to use xargs to run "rm" once for
>> each thousand files than once per file.

>     -exec utility [argument ...] {} +
>             Same as -exec, except that “{}” is replaced with as many
>             pathnames as possible for each invocation of utility.

Oh, look at that.  Worth a try.

John Levine, johnl at, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail.

More information about the freebsd-questions mailing list