2e5b02aec91c1ad8db697d5698b65e23936dcfbd
3 N_CPUS
=$
(nproc
2> /dev
/null || gnproc
2> /dev
/null || sysctl
-n hw.ncpu
2> /dev
/null
)
6 local -r dir
="${1-$HOME}"
7 local -r jobs="${1-$N_CPUS}"
9 find "$dir" -type f
-name Cargo.toml
-print0 \
10 |
xargs -0 -I % -P "$jobs" sh
-c 'rm -rf $(dirname "%")/target'
This page took 0.05892 seconds and 3 git commands to generate.