rm -rf build rm -f expected if ! NProcs=$(nproc || sysctl -n hw.ncpu) 2>/dev/null; then echo Command nproc not found. Try installing coreutils. >&2 exit 1 fi echo "$NProcs processors" > expected $1 --no-banner --no-color --console-width 0 NumProcessors.idr --exec main