Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- temp=$(vcgencmd measure_temp 2>&1)
- temp1=$(echo $temp | sed s/temp=//)
- temp2=$(echo $temp1 | sed "s/'C//")
- temp3=$(echo "$temp2 * 1.8" |bc -l)
- temp4=$(echo "$temp3 + 32" |bc -l)
- echo $temp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement