I am using WGET to burn a static copy of a PHP website. I would like to remove all references to .html in every <a href
for every file. So any link for example, <a href="path/project-name.html">Project Name</a>
, I would like changed to <a href="path/project-name">Project Name</a>
.
The command grep -rl index.html . | xargs sed -i 's/index.html//g'
works great at removing every index.html in all the links.
But I can't get it to work for every .html link with the command grep -rl *.html . | xargs sed -i 's/*.html//g'
.
Any assistance with my regex would be much appreciated.