[geeks] vmstat modification

geeks at sunhelp.org geeks at sunhelp.org
Sun Jul 15 20:56:42 CDT 2001


wilby98 at yahoo.com writes:

>I am interested in running vmstat in a small xterm

>on my Debian Linux box. I would like to limit the

>output to 5 columns. Is there any way to do it?

>Maybe using awk or sed?

Hey, I do the same thing. PI, PO, US, SY, ID, right?
awk should do it. I had annoying buffering problems, so 
I gave up and wrote a c program to deal with vmstat's 
output.

-------- David Fischer --------- dave at cca.org --------- www.cca.org --------
-------- If it wasn't for good luck, I wouldn't have no luck at all. -------



More information about the geeks mailing list