Shell parallel execution
GNU parallel
Usage
Use find + parallel:
find . -type d -name .terraform -print0 | parallel -0 tofu -chdir={}/.. init -upgrade
Use find + parallel:
find . -type d -name .terraform -print0 | parallel -0 tofu -chdir={}/.. init -upgrade