i want to show my gpu temperature from a terminal command using my console on ubuntu 18.04.
I installed sensors-lm and finished the configuration.
When i type sensors -A radeon-pci-0100 in a terminal it shows me:
radeon-pci-0100
temp1: +36.0°C (crit = +120.0°C, hyst = +90.0°C)
What i want is just the 36.0°C chars of this output, or better just 36°C.
How can i get this?
Thanks for help
Use
-,+and°as field separator. If row containstemp1:then print second column as integer and append°C:Output: