-
-
Save anonymous/5449184 to your computer and use it in GitHub Desktop.
generate html from template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk -f gera_html.awk foo.txt > output.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#descrição da página 1 | |
http://www.pagina1.com.br | |
#descrição da página 2 | |
http://www.pagina2.com.br | |
#descrição da página 3 | |
http://www.pagina3.com.br | |
#descrição da página 4 | |
http://www.pagina4.com.br |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/#/{ desc=$0 } | |
/^http/{ sub("#","",desc); print "<a href=\"" $0 "\">" desc "</a><br/>" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://www.pagina1.com.br">descrição da página 1</a><br/> | |
<a href="http://www.pagina2.com.br">descrição da página 2</a><br/> | |
<a href="http://www.pagina3.com.br">descrição da página 3</a><br/> | |
<a href="http://www.pagina4.com.br">descrição da página 4</a><br/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment