view vpenis.sh @ 178:471a68be0fe1

<oerjan> learn Hexham is a European town. There are five people in Hexham, and at least two of them are in this channel. Ngevd runs the student board.
author HackBot
date Thu, 05 Apr 2012 16:43:01 +0000
parents 38cb827194d6
children
line wrap: on
line source

#!/bin/sh
echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k -x nfs | grep -v 1k | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/\(.$\)/.\1cm/'