From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078718211907.tru64-unix-managers.marc@archive.invalid> From: "Warren, John H." Date: Mon, 24 Aug 1998 19:20:48 +0000 To: tru64-unix-managers Subject: SED/AWK question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078718211907 I've got a file containing disk statistics that is laid out like: 0000 0 rz0 0/0/0 0 18 2 20 2 1 rz1 0/1/0 0 18 2 20 2 ... ... 0010 0 rz0 0..... 1 rz1 0.... I want to take the timestamp (a number that goes 0000, 0010, ... 2350) and prepend each line before the next timestamp with it, so it would look like: 0000 0 rz0 0/0/0 0 18 2 20 2 0000 1 rz1 0/1/0 0 18 2 20 2 0010 0 rz0 0..... 0010 1 rz1 0.... Any sed/awk folks willing to give this a shot? Thanks! John H. Warren Computer Operations Manager IT Department, ESCO Corporation (503)778-6278 (Computer Room) (503)778-6513 (Office) jhwarren@escocorp.com http://www.escocorp.com