script editing command

How to use the “sed” commands to add two lines replacing a present
one

Thanks

Dámaso