Skip to content

Instantly share code, notes, and snippets.

@gammy
Created January 21, 2012 22:27
Show Gist options
  • Save gammy/1654276 to your computer and use it in GitHub Desktop.
Save gammy/1654276 to your computer and use it in GitHub Desktop.
Create array containing current CPU speed of each processor. Requires procfs.
speeds=($(grep MHz /proc/cpuinfo | cut -d ":" -f 2 | cut -d " " -f 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment