From: "Warren, John H." <JHWARREN () ESCOCORP ! com>
To: tru64-unix-managers
Subject: SED/AWK question
Date: Mon, 24 Aug 1998 19:20:48 +0000 [thread overview]
Message-ID: <96078718211907.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1998-08-24 19:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox