#!/bin/sh while true; do time="$(TZ=America/Chicago date +'%Z %H:%M')" time="$time | $(TZ=Europe/Amsterdam date +'%Z %H:%M %Y/%m/%d')" temp="CPU $(sensors k10temp-pci-00c3 | grep Tctl | cut -d: -f2 | tr -d ' +')" wlp1s0="$(nmcli connection | grep wlp1s0 | cut -d\ -f1)" if [ -z "$wlp1s0" ]; then wlp1s0="DN"; fi wifi="WLS $wlp1s0" bat="BAT $(battery)" echo "all status $wifi | $bat | $temp | $time" sleep 30s done