Sed question

David T. Coffield david at comp.lancs.ac.uk
Sat Dec 13 00:26:33 AEST 1986


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.

Thanks for any help.

(Apologies if this seems a dumb question, but it's Friday afternoon
and I'm fed up with the manual pages...)



More information about the Comp.unix.wizards mailing list