From 3adec3aa7e6f9dea4e5f22831aa669fefcc752f9 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sat, 26 Mar 2016 01:12:16 +0100 Subject: remove annoying trademark/registered notices in cpu name --- sysinfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysinfo.sh b/sysinfo.sh index d588b41..b4011d9 100755 --- a/sysinfo.sh +++ b/sysinfo.sh @@ -18,7 +18,7 @@ swap_free=`cat /proc/meminfo | grep -i SwapFree | awk '{printf "%d",$2/1024;}'` swap_used=`echo ${swap_total} ${swap_free} | awk '{printf "%d",$1-$2;}'` #--- [ CPU ] -------------------------- -cpu=`cat /proc/cpuinfo | grep "model name" | head -n 1 | sed 's/[ ][ ]*/ /g;s/^.*: //' | sed -e 's/ @ .*//' | sed -e 's/ [A-Za-z]*[ -]Core Processor//'` +cpu=`cat /proc/cpuinfo | grep "model name" | head -n 1 | sed 's/[ ][ ]*/ /g;s/^.*: //' | sed -e 's/ @ .*//' | sed -e 's/ [A-Za-z]*[ -]Core Processor//' | sed -e 's/([Tt][Mm])//;s/([Rr])//'` if [ -z "${cpu}" ]; then # fallback cpu=`uname -p` -- cgit v1.2.3