Advertisement
parkerlreed

Untitled

Feb 7th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/bin/bash
  2. temp=$(vcgencmd measure_temp 2>&1)
  3. temp1=$(echo $temp | sed s/temp=//)
  4. temp2=$(echo $temp1 | sed "s/'C//")
  5. temp3=$(echo "$temp2 * 1.8" |bc -l)
  6. temp4=$(echo "$temp3 + 32" |bc -l)
  7. echo $temp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement