perl -F'\t' -lane 'BEGIN{print "<table border=1 cellpadding=3 cellspacing=0>"}print "<tr>", (map {"<td>$_</td>"} @F), "</tr>";END{print "</table>}'
The map is in parentheses so that the closing '<tr>' tag is not slurped in as part of it's input array.
No comments:
Post a Comment