12-25-2018, 02:17 PM
(12-25-2018, 02:01 PM)tuxd3v Wrote: Its ok, you can also use decimal values with awk..Perfect! First of all I'm happy, thank you!
Code:TEMP=`awk '{ print substr( $1, 1, 3 ) / 10 }' /sys/class/thermal/thermal_zone0/temp`
TEMP1=`awk '{ print substr( $1, 1, 3 ) / 10 }' /sys/class/thermal/thermal_zone1/temp`