Hi, Eelco Dolstra <e.dolstra at tudelft.nl> writes: > nrCores=$(cat /proc/cpuinfo | grep 'processor.*:' | wc -l) It would be more portable and more elegant to use Coreutils’ new ‘nproc’ command: nrCores=$(nproc) Thanks, Ludo’.