sed: replace line with file
Alan Isaac <[email protected]>
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Message-ID | <Q9Xwj.16881$Hd.1735@trnddc02> |
I have a marker that should be replaced with a file.
I thought this would work, but it does not.
/myre/{
d
r myfile
}
On the other hand this works:
/myre/{
r myfile
d
}
How to understand?
Thanks,
Alan Isaac
(sed newbie)