On Jan 4, 2023, at 7:19 AM, Ralph Corderoy <ralph(a)inputplus.co.uk> wrote:
A lot of the time, POSIX find's ‘-exec foo {} +’ suffices and runs
foo with as many arguments as will just fit under argv[]s limits,
like xargs by default and unlike find's one-at-a-time behaviour with
‘-exec foo {} \;’.
I often run further transformations before executing
some command on selected files. For example
find . -type f -name '*.[csh]' | grep -l foo | xargs wc -l
Composability rules!