by AceJohnny2 · 3y ago · 0 comments
Or just use ripgrep, which integrates multi-core.
xargs -P maxprocs
Parallel mode: run at most maxprocs invocations of utility at once. If maxprocs is set to 0, xargs will run as many processes as possible.