port to convert comma delimited file
Simon Barner
barner at in.tum.de
Wed Mar 26 03:28:46 PST 2003
> Someone mentioned Perl. Try the following little Perl snippet:
> #!/usr/bin/perl
>
> print "<TABLE>\n";
> while (defined($line = <STDIN>)) {
> chomp $line;
> print "<TR><TD>" . join("</TD><TD>", split(/;/, $line)) .
> "</TD></TR>\n";
> }
> print "</TABLE>\n";
Yes, this is exactly what I was thinking about :-)
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030326/5bf3123e/attachment-0001.bin
More information about the freebsd-questions
mailing list