[Ilugc] Help required....Require a script to filter information
from vmstat output...Clarification INside...
zulfilee at midascomm.com
Wed Dec 15 17:56:57 IST 2004
This link has a good guide on bash scripting
And thanks a ton toufeeq for the pun.
But I was wrong there and so thanks Suraj for correcting me.
On Wednesday 15 December 2004 14:57, Kirty Mohanty wrote:
> Hi All,
> Below is the output of vmstat command:
> procs memory page disk faults cpu
> r b w swap free re mf pi po fr de sr s0 s1 s6 -- in sy cs us sy
> id 0 0 0 1120 1240 0 0 0 0 0 0 0 1 0 0 0 4294967196 0 0 -37
> -28 -96
> Could anyone of you please write and post a script which will filter
> information and show it?
> It means that:
> 1. if i give the option as "memory" then it will show all the
> columns related to the memory heading in the vmstat output...
> 2. if i give the option as "cpu" then it will show all the columns
> related to the cpu heading in the vmstat output...
> ...and like this for all the headings(procs,memory,
> page,disk,faults,cpu) in the output of the vmstat command.
> Thanks in advance....
The highest sounds are hardest to hear.
Going forward is a way to retreat.
Great talent shows itself late in life.
Even a perfect program still has bugs
-Tao of programming
More information about the ilugc