#!/bin/bash temp01=`cat /sys/bus/w1/devices/28-000006799670/w1_slave | tail -n 1 | cut -f10 -d " " | cut -f 2 -d "="` temp02=$(awk "BEGIN {printf \"%.3f\",${temp01}/1000}") echo $temp02