Breaking down a Serial data stream

I'm running Debian ib Bash shell. currently I'm streaming the data from ttyS1 . The data stream is 13 fields comma delimited

cat /dev/ttyS1

02/04/2009,10:57:18,1401.0,7.5,424.9,0.0,0.0,159.8,1401.0,7.5,265.2,34.4,2.5

The data is grouped for specific systems.

02/04/2009,10:57:18 date time
1401.0,7.5,424.9, "power company" current power , Daily power, Monthly
0.0,0.0,159.8, "Solar /Wind power" Current , Daily , Monthly
1401.0,7.5,265.2, "Differences" Current, Today, Month
34.4,2.5 Temperature outside, Wind Speed

I trying to pull these figures out and let me use them to create a web page to publish the data.

I'm using a bash. Any thoughts on how to proceed here.

Thank you

Michael

Using awk - assume data in file called data

This gives output html file:

<html><body><table border=1><tr>
<th>Date</th><th>Time</th>
<th>Power Company - Current</th><th>Daily Power</th><th>Monthly</th>
<th>Solar /Wind power - Current</th><th>Daily</th><th>Monthly</th>
<th>Differences - Current</th><th>Today</th><th>Month</th>
<th>Temperature outside</th><th>Wind Speed</th></tr>
<tr>
<td>02/04/2009</td>
<td>10:57:18</td>
<td>1401.0</td>
<td>7.5</td>
<td>424.9</td>
<td>0.0</td>
<td>0.0</td>
<td>159.8</td>
<td>1401.0</td>
<td>7.5</td>
<td>265.2</td>
<td>34.4</td>
<td>2.5</td>
</tr>
<tr>
</tr>
</table></body></html>