Created
August 1, 2021 18:00
-
-
Save theoparis/275ef7792c6f4a222a2df2b2d4600de4 to your computer and use it in GitHub Desktop.
Bash shell function for lm_sensors to grep a sensor by name
This file contains hidden or 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
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