1 #!/bin/bash 2 # Assumes cygwin. 3 ls /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor | wc -w 4