OK,
I have a file named 'data' that looks like this:
Code:
Cookies:34:Brakefast:54:345:34:banna, chips, milk:cook it good.:I like it.
cake:37:Dessert:22:45:4:milk, sugar:bake it good.:I love it.
Raps:23:Dinner:42:65:12:meat, raps, mayo:Make it and rap it.:Yumm Yumm
and I know how to use the 'cut' command like follows
Code:
$ cut -d: -f7 data
banna, chips, milk
milk, sugar
meat, raps, mayo
$ cut -d: -f3,4 data
Brakefast:54
Dessert:22
Dinner:42
But, what I'd like to do is write a script that takes the file and converts it to and HTML file that looks something like this:
Code:
<big><big><span style="font-weight: bold;">Cookies</span></big></big><br>
34 Brakefast<br>
54 345 34<br style="font-weight: bold;">
<br style="font-weight: bold;">
<span style="font-weight: bold;">Notes</span><br>
banna, chips, milk<br>
cook it good.<br>
I like it.<br>
<hr><big><big><span
style="font-weight: bold;">cake</span></big></big><br>
37 Dessert<br>
22 45 4 <br>
<br>
<span style="font-weight: bold;">Notes</span><br>
milk, sugar<br>
bake it good.<br>
I love it.<br>
<hr><big><big><span
style="font-weight: bold;">Raps</span></big></big><br>
23 Dinner<br>
42 65 12<br>
<br>
<span style="font-weight: bold;">Notes</span><br>
meat, raps, mayo <br>
Make it and rap it.<br>
Yumm Yumm
<hr>
It doesn't have to be exactly like that, but something just to get me started.
thanks