Comment Comment by WizardClickBoy Thanks! Gippity did suggest the xargs approach as an alternative, but I found thatfind [...] - exec [...] {} +as opposed tofind [...] - exec [...] {} \;worked fine and was performant enough for my use-case. An example command wasfind . -type f -name "*.html" -exec sed -i '' -e 's/\.\.\/\.\.\/\.\.\//\.\.\/\.\.\/\.\.\/source\//g' {} +which took about 20s to run parent WizardClickBoy 2 years ago
find [...] - exec [...] {} +
as opposed to
find [...] - exec [...] {} \;
worked fine and was performant enough for my use-case. An example command was
find . -type f -name "*.html" -exec sed -i '' -e 's/\.\.\/\.\.\/\.\.\//\.\.\/\.\.\/\.\.\/source\//g' {} +
which took about 20s to run