How can I replace one instance of a word in a text file with a piece of text that spreads several lines ?
e..g I want to replace abcd123
with
Code:
abc1 fdsf
abe2 dfdfd
asfs fdgdfg
asds ytryt
you see the above spans multiple lines.
I know sed or awk is the way to go but don't know that how I can introduce new paragraphs using these tools