I have installed tlp in my system to prevent laptop over heating and i used this code to retrieve currtent cpu temperature.
tlp-stat -t
the output for above command is something like this:
--- TLP 0.7 --------------------------------------------
+++ Temperatures
CPU temp = 47 [°C]
Fan speed = (not available)
can you tell me how i can retrieve only the integer part of that output (ie 47). I tried using cut command but i am unable to find an optimum result.
this is the cut command i used
tlp-stat -t | cut -d= -f2
and the output is
--- TLP 0.7 --------------------------------------------
+++ Temperatures
49 [°C]
(not available)
How to refine my cut
command to get only the integer two digit value?