Skip to content

Instantly share code, notes, and snippets.

@tcoppex
Created April 13, 2018 09:13
Show Gist options
  • Save tcoppex/f1265fb91500a27aa0df6bb48498d542 to your computer and use it in GitHub Desktop.
Save tcoppex/f1265fb91500a27aa0df6bb48498d542 to your computer and use it in GitHub Desktop.
Some bash utilities.
# retrieve the total number of CPU minus one to avoid stall.
export NUM_CPU=$((`grep -c ^processor /proc/cpuinfo`-1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment