Created
February 27, 2015 18:21
-
-
Save omgmog/ff4e34fda24b82a03d42 to your computer and use it in GitHub Desktop.
Output the mean speed in Mhz of all cpu cores
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
#!/bin/sh | |
cat /proc/cpuinfo | grep MHz | awk '{ total += $4; count++} END { print total/count }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment