How to script change of domain name in email addresses in NAB

I have secondary NAB with about 5000 email addresses for a company, all email addresses it this NAb lat say have domain @old_domain.com this company has changed recently domain name to lat say @new_domain.com I need to change all email addresses to new domain name, these are not used for anything else, no authentication, no notes id, they just used for email lookup… can I script this ?