Difference between revisions of "Vpenis"
From Eth0Wiki
(New page: #!/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...) |
m |
||
Line 1: | Line 1: | ||
− | |||
#!/bin/sh | #!/bin/sh | ||
echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat \ | echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat \ | ||
Line 8: | Line 7: | ||
56.1cm buZz , dell inspiron 640m | 56.1cm buZz , dell inspiron 640m | ||
+ | 61.4cm chakotay, IBM Thinkpad T60 |
Revision as of 12:23, 10 July 2008
#!/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/'
56.1cm buZz , dell inspiron 640m 61.4cm chakotay, IBM Thinkpad T60