Need script to bulk load

srilatha

New Member
Joined
Jan 29, 2021
Messages
1
Reaction score
0
Credits
16
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
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
6,633
Reaction score
5,396
Credits
19,688
G'day @srilatha and welcome to linux.org :)

I am moving this to Command Line, where scripting enquiries are also handled.

Good luck.

Chris Turner
wizardfromoz
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top