J
#!/bin/sh
while true
do
clear
BYELL=`echo "\033[01;33m"` #boldyellow
ORNG=`echo "\033[33m"` #orange
WHITE=`echo "\033[01;37m"` #bold white
RED=`echo "\033[31m"` #red
RESET=`echo "\033[m"` #reset
temp=$(vcgencmd measure_temp)
temp=${temp:5:4}
echo -e "${RESET}${ORNG}Device:${BYELL}`whoami`@`uname -n`${WHITE} `date +"%a %d %b %Y %R %Z"`${RESET}${ORNG} IP:${BYELL}`ip route get 8.8.8.8 2>/dev/null | head -1 | cut -d' ' -f8`${RESET}"
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo -e " ${ORNG}************************"
echo -e " [${BYELL} CPU Temp: ${temp}°C${RESET}${ORNG} ]"
echo -e " ${ORNG}************************${RESET}"
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo -e " ${BYELL}CPU temperature is updated every 5 seconds.${RESET}"
echo
echo -e " ${ORNG}Press Ctrl+C to exit."${RESET}
tput cuf 118
sleep 5;
clear
done