Date: Wed, 26 Mar 2003 04:28:39 +0100 From: Simon Barner <barner@in.tum.de> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: questions@freebsd.org Subject: Re: port to convert comma delimited file Message-ID: <20030326032839.GB657@zi025.glhnet.mhn.de> In-Reply-To: <20030326030420.GA16019@gothmog.gr> References: <20030325204410.D17599@dhcp-17-14.kico2.on.cogeco.ca> <20030326030420.GA16019@gothmog.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
--bCsyhTFzCvuiizWE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Someone mentioned Perl. Try the following little Perl snippet: =20 > #!/usr/bin/perl >=20 > print "<TABLE>\n"; > while (defined($line =3D <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 --bCsyhTFzCvuiizWE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+gR5nCkn+/eutqCoRAm7rAJ4tX7erzSUeWsv8okMbDrJ3xRbhbQCfT5Dy Hxan1Oe83DSzMcFvlkgeDr4= =/3ru -----END PGP SIGNATURE----- --bCsyhTFzCvuiizWE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030326032839.GB657>