Re: sed r option | insert file

"[email protected] [sed-users]" <[email protected]> 19 Dec 2016 07:05:06 -0800
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>

 

 sed -ne '
    /BEGIN/{
       p; r file.txt
       :loop
            $q; n
        /END/!bloop
    }
    p
 ' < yourfile
 



[Non-text portions of this message have been removed]