Replacing tag in one file with data from another

16 views
Skip to first unread message

David Viard

unread,
Oct 11, 2022, 9:16:24 AM10/11/22
to BBEdit Talk
Hi guys,

I need to build a Script which would list href tags (filled with a <!-- #getUrl# --> comment) in a mjml/html file and replace the comment with the contents of another file where are listed the final URLs.
The list of Urls being ordered according to their expected order in the html/mjml file (top to Bottom.

Is this even possible?
I was wondering if it was possible to loop through both lists and use grep replace from one to the other.

Any insights?

Thanks
Reply all
Reply to author
Forward
0 new messages