#!/bin/bash
temp=$(cat /sys/devices/platform/samsung_mobile_device/samsung_mobile_device:battery/power_supply/battery/batt_temp)
celsius=$(echo "scale=1; $temp / 10" | bc)
fahrenheit=$(echo "scale=1; ($celsius * 9/5) + 32" | bc)
echo "Battery Temperature in Fahrenheit: $fahrenheit"