on top of @unrelated suggestion on using sed, awk or grep, and if u need a solution right now, i highly suggest using vscode to achieve the very same thing.
once u have vscode installed u can open your vault with File > Open Folder
and choose your Obsidian vault. then use Find in Folder...
to search and replace content of your notes/files. vscode is better at bulk search and replace. u can see at my screenshot below that u can choose to replace only certain links or all links it found.