I'm trying to replace text between 2 strings using Python or sed. I read all what I found on Stack Overflow, but my skills don't seems to be enough to adapt what I found to my problem.
I have 2 files :
Courses.txt:
Course = bla Room number(1) url http://foobar
dst.txt:
//Start Course = foo Room Number(2) url http://bar //End
My goal is to replace what is between //Start
and //End
in dst.txt
with what is read in Courses.txt
.
I looked here :
but was not able to use them.