Brilliant! Thanks Annihilannic my immediate issue is resolved.
awk '{sub(/^/,"<tr><td>");gsub("\t","</td><td>");print $0,"</td></tr>"}' file.tx
Still, I wonder...what if it wasn't tab separated? These variables will be useful in the future.
I need to convert a .xls file to html. Please do not suggest File>Save As HTML. :)
I've dumped the .xls file to .txt:
3300-1504-000 short item# description $51.00 $22.46 $12.44 $6.32
0640-0219-000 a longer different item# description $903.00 $296.58 $215.09
0640-0219-003 Yet...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.