Hello,<br>sorry for the offtopic. it seems a simple thing but I can&#39;t find an escape char or something correct...<br>I have this setup in place<br>source file input.txt:<br><br>bla bla<br>bla bla<br>TAG<br>bla bla<br><br>
sed command file sed.txt:<br><br>/TAG/c\<br>BLABLA .... BLABLA<br><br>so that the command<br>sed -f sed.txt input.txt<br>gives as output<br><br>bla bla<br>
bla bla<br>
BLABLA .... BLABLA<br>
bla bla<br><br>Suppose I want now to substitute the TAG pattern with a multi-line pattern, for example<br>occurences of<br>TAG<br>must become 2 lines:<br>BLABLA<br>BLOBLO<br><br>How can I achieve this?<br>Thanks in advance,<br>
<br>Gianluca<br>