Skip site navigation (1)Skip section navigation (2)
Date:      18 Oct 2020 20:34:38 -0400
From:      "John Levine" <johnl@iecc.com>
To:        freebsd-questions@freebsd.org
Cc:        bob@proulx.com
Subject:   Re: sh scripting question
Message-ID:  <20201019003438.DEE4923A1E5D@ary.qy>
In-Reply-To: <20201018155812796938832@bob.proulx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20201018155812796938832@bob.proulx.com> 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.

R's,
John
-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201019003438.DEE4923A1E5D>