tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SED/AWK question
@ 1998-08-24 19:20 Warren, John H.
  0 siblings, 0 replies; only message in thread
From: Warren, John H. @ 1998-08-24 19:20 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-08-24 19:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-24 19:20 SED/AWK question Warren, John H.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox