200426.5 · 481b64a667e8d9aca522a0455a00f32dac1f4977
initial commit of ~/bin
This brings over everything that was in my bin-only repository.
I removed scripts that were unused or were no longer understood. I also moved any work-specific scripts to a separate (private) repository.
reading declarations
Changes to bin/num-processors. All files
@@ -0,0 +1,8 @@+#!/bin/sh++if [ -r /proc/cpuinfo ]; then+ NPROC=$(grep -c '^processor' /proc/cpuinfo | tr -d ' ')+else+ NPROC=1+fi+echo $NPROC