you dont have to that via POSIX cmds. Tons of ways available. Nevertheless:
cat /sys/class/thermal/thermal_zone0/temp