Scripting Question

From: Edward Dubrovsky/CGI <edward.dubrovsky_at_cgi.ca>
Date: Wed, 19 Sep 2001 12:22:17 -0400

Hi All,

This should be a fairly easy question. I have created a file using awk
containing a bunch of records from an iostat command output. I am filtering
the idle cpu time via the awk command. Now as you know the first line would
be blank (due to it being originally a date line), the 2nd line is also
blank since it does not contain column 24 which I filter on (titles), the
next line would contain the "id" column followed by two lines. The first
line would be the average to this point and the second line would be the
actual idle cpu time for this time/second.

What I need to do is filter by every 5th line. Trying to figure out how to
grep this?? I was hoping perhaps someone can provide a quick response to
this little problem.


Thanks,

Ed D.
Received on Wed Sep 19 2001 - 16:26:30 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT