Penguin

Using CUT to grab the leftmost characters of data

Our knowledge of nature has led us to the understanding of the world and, therefore, to the theory that every natural being is capable of using that knowledge to build a better world.

 

# Read the temp and cut it to grab leftmost 2 characters, integer Temp
temp=”`cat /sys/class/thermal/thermal_zone0/temp | cut -c1-2`”

Leave a Reply

Your email address will not be published. Required fields are marked *