Created
April 13, 2018 09:13
-
-
Save tcoppex/f1265fb91500a27aa0df6bb48498d542 to your computer and use it in GitHub Desktop.
Some bash utilities.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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