Article 55KH3 Substitute text between pattern with string using sed

Substitute text between pattern with string using sed

by
Johng
from LinuxQuestions.org on (#55KH3)
I am trying to create a script to edit files using sed. I want to substitute some text between two patterns with a string generated in the script. The text to be replaced varies from file to file.

Change:Code:<name>some unknown text</name>To:Code:<name>$newstring</name>Any help?latest?d=yIl2AUoC8zA latest?i=yyzmwmoCD_g:LjWsX8NAgys:F7zBnMy latest?i=yyzmwmoCD_g:LjWsX8NAgys:V_sGLiP latest?d=qj6IDK7rITs latest?i=yyzmwmoCD_g:LjWsX8NAgys:gIN9vFwyyzmwmoCD_g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments