Hello..
I have a line in a file which I have to edit:
the line looks like:
<![CDATA[(&(|(cn=ABC)(cn=DEF))(objectclass=groupOfUniqueNames))]]>
Sometimes, the section of the line can have only one entry for cn, or maybe more than 2 like below:
<![CDATA[(&(|(cn=ABC))(objectclass=groupOfUniqueNames))]]>
I have a variable which has the following value:
CN="(cn=MNO)(cn=XYZ)"
I need to replace the part of the line (cn=ABC)(cn=DEF) with $CN