From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653680322035.tru64-unix-managers.marc@archive.invalid> From: Edward Dubrovsky/CGI Date: Wed, 19 Sep 2001 16:22:17 +0000 To: tru64-unix-managers Subject: Scripting Question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653680322035 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.