I\'m looking for a way to search and replace over multiple lines through a shell script. This is what I\'m trying to do:
source:
[stuff before]
[\s\S]*/your new content here/gim' yourfile1.txt
please note that this will replace the file with the new, changed content.