Skip site navigation (1)Skip section navigation (2)
Date:      18 Oct 2020 17:54:20 -0400
From:      "John Levine" <>
Subject:   Re: sh scripting question
Message-ID:  <20201018215421.6BA9B23A1462@ary.qy>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
In article <> you write:
>> Since find is in use, I think the canonical solution is
>> to use "find -print0"..."xargs -0"

>Here is an example, I will use a "ls -ld" command just to make it a
>real concrete example and perhaps easier to read that way.
>    find . -exec ls -ld {} +

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.

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

Want to link to this message? Use this URL: <>