Timeline for How can I use sed or ex to replace a block (multi-line code) with new block of text (code)?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 16, 2016 at 23:24 | comment | added | G-Man Says 'Reinstate Monica' | You wouldn't need the backslashes if you use the r command discussed in other answers to that question. I'm not sure how you would use a here document with sed. | |
| Aug 16, 2016 at 15:27 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | removed confusion about "." (ed, not sed). |
| Aug 16, 2016 at 13:40 | comment | added | gibies | Is there any way to avoid "\" and use here document for sed as in the case of ex syntax suggested by Bruce Ediger in Multi-line replace. | |
| Aug 16, 2016 at 9:03 | history | edited | Thor | CC BY-SA 3.0 | grammer |
| Aug 16, 2016 at 8:03 | comment | added | gibies | The change command works fine for both sed and ex alike. Thank you very much. | |
| Aug 16, 2016 at 6:50 | history | answered | G-Man Says 'Reinstate Monica' | CC BY-SA 3.0 |