Can you show us the awk code you're using to generate the HTML you have at the moment ? As per vgersh99's earlier reply, there doesn't seem to be anything in any of the code you've posted so far that generates any HTML at all, so if you can show us how you're going about it presently, and also let us know what the problem you're presently having actually is, then we should hopefully be able to suggest what you could do to get the last bits of your solution working the way you require.