Skip to content

Instantly share code, notes, and snippets.

@jcpst
Created March 27, 2015 20:32
Show Gist options
  • Save jcpst/45fd7d0bcf4ef5cce458 to your computer and use it in GitHub Desktop.
Save jcpst/45fd7d0bcf4ef5cce458 to your computer and use it in GitHub Desktop.
#from here: http://stackoverflow.com/questions/24710521/calculating-average-value-of-temp-from-lm-sensors-using-bash-script
sensors | awk '/^Core /{++r; gsub(/[^[:digit:]]+/, "", $3); s+=$3} END{print s/(10*r) "°C"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment