I trying to achieve parallel find to reduce big FS traversing time:
find $1 -mindepth 2 -maxdepth 2 -type d | xargs -P5 -n1 find
works good but five (-P5) "find" processes run in parallel mess their output so strings break apart sometimes. How to rid off this behavior? Should be а usual problem with xargs but seems nobody uses its parallel feature.
You can write to separate files using
And then
cat
ing them together at the end.