1
Hello.
I have a lot of HTML files that have links in the following format: http://localhost:8080/tag:alguma_coisa
and I need to add the extension .html
to these links so that they stay like this: http://localhost:8080/tag:alguma_coisa.html
.
I’ve tried several combinations with find
and sed
but with none of them I got the expected result.
Does anyone have any idea how to do this with Shell Script?
Are the contents of these files just links? Or are there other things (comments, blank lines, etc...)?
– Diego
It’s HTML source code. What I need is to get all attributes of html tags in the format
nome_atributo="tag:algumacoisa"
and trade fornome_atributo="tag:algumacoisa.html"
. For example, I have<a href="tag:city">
and I need to exchange for<a href="tag>city.html">
– Everton da Rosa