[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed: replace line with file
From: |
Ralf Wildenhues |
Subject: |
Re: sed: replace line with file |
Date: |
Tue, 26 Feb 2008 20:11:13 +0100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
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