Hi,
I have a file like this -->
Consider z as space
#cat filename
ABC
<!--Nzzzzz-->
<!--RESUMO-->
EFG
XYZ
<!--Nzzzzz-->
<!--RESUMO-->
I need to cut the <!--RESUMO--> part and paste it to the previous line so that the file will look like this-->
ABC
<!--Nzzzzz--><!--RESUMO-->
EFG
XYZ
<!--Nzzzzz--><!--RESUMO-->
To replace with sed I have written a code but unfortunately it is not working. The code is-->
sed '/<\!\-\-N \-\-><\!\-\-RESUMO\-\->/!{ s/\/>/&\n/ }' | sed '/<\!\-\-N \-\-><\!\-\-RESUMO\-\->/!{s/>/&\n/}'
Can anyone help me on this?
I need to cut the part <!--RESUMO--> and paste it to the previous line