Need someone to mass replace in a text file

Hello everyone,

I want to create a hosts file for the AdGuard Pro Blocker on iOS. I simply need to add a ^ at the direct ending of each line. I already tried doing so several times but Atom crashes for me. I guess my MacBook is simply not good enough due to the amount of lines. So I need someone who could do that for me. I am not sure if I am allowed to post a direct link on here so I figured I would post first and wait for permission/approval.

Kind regards

Mark