Re: sed: replace line with file

Ralf Wildenhues <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Department of Numerical Simulation, University of Bonn
Message-ID <[email protected]>
Hi Alan,

* Alan Isaac wrote on Tue, Feb 26, 2008 at 05:31:44PM CET:
> I have a marker that should be replaced with a file.
> I thought this would work, but it does not.
>
> /myre/{
> d
> r myfile
> }

The 'd' command not only deletes the current line, it also causes the
script to start over at the next input line.

Cheers,
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.