2020-04-17 23:21:06 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
sensors=`which sensors`
|
|
|
|
egrep=`which egrep`
|
|
|
|
cut=`which cut`
|
|
|
|
sort=`which sort`
|
|
|
|
uniq=`which uniq`
|
|
|
|
tail=`which tail`
|
2019-10-22 16:52:31 +01:00
|
|
|
|
2020-04-17 23:21:06 +01:00
|
|
|
max_temp=`$sensors | $egrep -o '[0-9][0-9]\.[0-9].*\(' | $cut -d' ' -f 1 | $sort | $uniq | $tail -n 1`
|
2019-10-22 16:52:31 +01:00
|
|
|
|
2019-10-22 18:23:59 +01:00
|
|
|
echo "${max_temp}"
|