Hello
I have below a sample input file with 5000+ Entries in the below format.
Input File:
3aa2e77091fae30af408bcb57502800f05aece1516799d2fd46,"243178117873533958"
4b6f3bb98472f976951c072fcb445b9e34d4a68f16799ef2325,"242993583395701767"
Can someone help me with the code, I need the output in the below format.
dn: cn=3aa2e77091fae30af408bcb57502800f05aece1516799d2fd46,ou=extranet,ou=person,dc=example,dc=com
changetype: modify
replace: logical
logical: 243178117873533958
dn: cn=4b6f3bb98472f976951c072fcb445b9e34d4a68f16799ef2325,ou=extranet,ou=person,dc=example,dc=com
changetype: modify
replace: logical
logical: 242993583395701767
Thanks
I have below a sample input file with 5000+ Entries in the below format.
Input File:
3aa2e77091fae30af408bcb57502800f05aece1516799d2fd46,"243178117873533958"
4b6f3bb98472f976951c072fcb445b9e34d4a68f16799ef2325,"242993583395701767"
Can someone help me with the code, I need the output in the below format.
dn: cn=3aa2e77091fae30af408bcb57502800f05aece1516799d2fd46,ou=extranet,ou=person,dc=example,dc=com
changetype: modify
replace: logical
logical: 243178117873533958
dn: cn=4b6f3bb98472f976951c072fcb445b9e34d4a68f16799ef2325,ou=extranet,ou=person,dc=example,dc=com
changetype: modify
replace: logical
logical: 242993583395701767
Thanks