Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Escrito por kenkeiras
- back=$PWD
- cd /proc/acpi/thermal_zone/
- if [ "$1" = "-c" ]; then
- lonx=4
- else
- lonx=3
- fi
- for i in *; do
- e=`cat $i/temperature`
- e=${e:`expr length "$e"`-4:$lonx}
- echo "$i: $e"
- done
- cd $back
Advertisement
Add Comment
Please, Sign In to add comment