Skip to content

Instantly share code, notes, and snippets.

@renevo
Created March 12, 2017 06:48
Show Gist options
  • Save renevo/a1d4f3eef4e53747fbb8986d6e9bf131 to your computer and use it in GitHub Desktop.
Save renevo/a1d4f3eef4e53747fbb8986d6e9bf131 to your computer and use it in GitHub Desktop.
Outputs CPU temperature for Mericans...
awk '{printf("%.1f°F\n",(($1*1.8)/1e3)+32)}' /sys/class/thermal/thermal_zone0/temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment