I'm still beginner in perl programming. I will appreciate is someone can provide advice or some clue to create perl script below
The file1 is comma separated file(csv).
Read every line from file1
I need to replace string(name) in file2 that matches first column of file1 with second column of file1
############################################### file 2 ------ DN: CN=Itmanagement,OU=Groups,O=uni.com ChangeType: Modify Add: uniquemember uniquemember: uid=anakin,OU=Users,o=uni.com DN: CN=ComputerScience,OU=Groups,o=uni.com ChangeType: Modify Add: uniquemember uniquemember: uid=obiwan,OU=Users,o=uni.com DN: CN=accoutning,OU=Groups,o=uni.com ChangeType: Modify Add: uniquemember uniquemember: uid=skywalker,OU=Users,o=uni.com DN: CN=management,OU=Groups,o=uni.com ChangeType: Modify Add: uniquemember uniquemember: uid=anakin,OU=Users,o=uni.com ###############################################
file 1 ------ anakin,james obiwan,nicol skywalker,sarah darthvader,robert
In reply to How to replace string in file2 that matches first column of file1 with second column of file1 by anakin30
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |