#!/bin/bash
cpuTemp() {
CPUTEMP=$(sensors | grep CPU | awk '{print $2}' | grep -o [0-9][0-9]||[0-9][0-9][0-9])
CPUFREQ=$(lscpu | grep MHz | head -n1 | awk '{print $3}')
echo -n "CPU Temp: $CPUTEMP° > CPU Freq: $CPUFREQ"
}
loadAvg() {
la=$(uptime | grep -o :\ [0-9].* | sed s/://g | awk '{print $1}' | sed s/,//g)
echo -n "Load: $la"
}
while true; do
echo -ne "$(cpuTemp) $(loadAvg)\n"
sleep 1
done