Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!lll-crg!ames!scubed!piaget!jc
From: jc@piaget.UUCP (John Cornelius)
Newsgroups: comp.unix.wizards
Subject: Re: Sed question
Message-ID: <140@piaget.UUCP>
Date: Wed, 17-Dec-86 22:27:36 EST
Article-I.D.: piaget.140
Posted: Wed Dec 17 22:27:36 1986
Date-Received: Thu, 18-Dec-86 20:45:14 EST
References: <107@dcl-csvax.comp.lancs.ac.uk>
Reply-To: jc@piaget.UUCP (John Cornelius, System Manager)
Distribution: world
Organization: International Widget
Lines: 15

In article <107@dcl-csvax.comp.lancs.ac.uk> david@comp.lancs.ac.uk (David T. Coffield) writes:
>In "sed" how can does one form a command to do the following:
>
>Take file A, find the first line beginning with a 150,
>append a line of text at that point and then write out
>file A (all of it) with the newly inserted line.
>
I suppose you could try

/^150/a\


-- 
John Cornelius
(...!sdcsvax!piaget!jc)