How to replace Texr Multiple Lines

I want to replace multiline texts from a specific directory or for entire vault. How can I achieve that. Is there and way to achieve that using some plugins.


I want to replace this:

TABLE L.text AS "My lists"
FROM "dailys"
FLATTEN file.lists AS L
WHERE contains(, "Surname")

with this:

LIST rows.c
WHERE typeof(contacts) = "array" AND contains(contacts, [[Mr. L]])
SORT length(contacts)
FLATTEN contacts as c
SORT link(c).age ASC

On Directory test recrusively.

I know that this is not a linux forum but if you know a way to use the terminal and achieve this. It will also help.

And also note: I am a Mobile User, I use Termux as a CLI.