I have over 100 HTML file. I want to add the following code on each of the HTML document
<link rel="canonical" href="http://www.example.com/sub-folder/page-name.html">
I would like to replace page-name.html with the current file path
Is there a script I could use to achieve this in on all the 100 documents?