Replace a string with sentence containing multiple newline characters

Published: 5/10/2017
Replace a string with sentence containing multiple newline characters
Source: UNIX.STACKEXCHANGE.COM

I am trying to replace string with a sentence or paragraph contacting multiple newline characters using shell script. Replacement string will be generated run-time. eg: sed /string_to_be_replaced/Replacement(newline character) string (newline character)/g Any inputs/ideas are welcome. Thanks!

Read more
Related news
Comment