I need to write a simple script to replace a block of text in a configuration file with the contents of another file.
Let\'s assume with have the following simplifie
Give this a try:
sed -i -ne '// {p; r realm.xml' -e ':a; n; // {p; b}; ba}; p' server.xml