In need of some awk help.
This is the output of sensors:
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +50.0°C (high = +80.0°C, crit = +90.0°C)
Core 2: +47.0°C (high = +80.0°C, crit = +90.0°C)
I can use awk and cut to get the temperature only for each core as: +50.0°C
What I want is to get the output as 50°C or 50.0°C.
In the past I have used gsub or sub for that, but it’s been a while and I can’t remember how I did it.
Any help with that appreciated.