This very simple script works fine:
Code:
echo -n "Kernel:"
uname -a|awk '{print $1, $3}'
echo -n "CPU:"
cat /proc/cpuinfo|grep name|awk '{print $4, $5, $6, $7}'
cat /proc/cpuinfo|grep MHz|awk '{print $2, $3, $4}'
echo -n "Mem/Use:" && free|grep Mem:|awk '{print $2, $3}' && echo -n "Uptime:"
uptime|awk '{print $3}'
echo -n "Resolution:"
When executed prints this:
Kernel:Linux 2.6.5
CPU:AMD Athlon(TM) XP 2200+
MHz : 1795.664
Mem/Use:1002320 188820
Uptime:5:41
I would however like to change the format so that it looks like this:
Kernel:Linux 2.6.5 CPU:AMD Athlon(TM) XP 2200+ @ 1795.664 MHz
Mem/Use:1002320 188820 Uptime:5:41
So far I have only managed to make the format extremely ugly.
Thanks alot for any pointers!