In question [ Find and delete all the directories named "test" in linux ] on this site, the best answer talks about using these two commands:
find . -name test -type d -print0|xargs -0 rm -r --
find . -name test -type d -exec rm -r {} +
because they will call rm with a list of directory instead of invoking it many times individually.
Since I cannot comment there due to low reputation, I ask here in a new question:
Is there any limit on the number of files that can be passed to rm using these techniques (aside from realistic system resource bounds)?
From the shell, a command like 'rm *' can exceed the shell's maximum command-line length, but do limits like that apply to this usage of find + or via a pipe to xargs?