Hi All
I am trying to remove multiple lines from a file. But not successful yet.
The file contents are:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=RS5_DBADATATEST2)
(ORACLE_HOME=/orahome/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=RS5)
)
(SID_DESC=
(GLOBAL_DBNAME=SUMMER_DBADATATEST2)
(ORACLE_HOME=/orahome/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=SUMMER)
)
)
and I am trying to remove the following lines only:
(SID_DESC=
(GLOBAL_DBNAME=RS5_DBADATATEST2)
(ORACLE_HOME=/orahome/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=RS5)
)
1] I tried with blockinfile (with state=absent), but does not work. Not sure what should be the “markers”
2] lineinfile also does not work for me with the ones I tried.
Any pointer would help.
Regards
Bhabani