Skip to content

Instantly share code, notes, and snippets.

@theoparis
Created August 1, 2021 18:00
Show Gist options
  • Save theoparis/275ef7792c6f4a222a2df2b2d4600de4 to your computer and use it in GitHub Desktop.
Save theoparis/275ef7792c6f4a222a2df2b2d4600de4 to your computer and use it in GitHub Desktop.
Bash shell function for lm_sensors to grep a sensor by name
sensor() {
sensors | grep $1 | cut -f2- -d: | tr -d ' \t'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment