view vpenis.sh @ 142:2314b5288392

<quintopia> addquote <elliott> why isn't time going backwards <zzo38> Possibly because there is no room for time to turn around
author HackBot
date Fri, 30 Mar 2012 03:38:53 +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/'