From owner-freebsd-questions@FreeBSD.ORG Tue Mar 25 19:28:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 635B037B401 for ; Tue, 25 Mar 2003 19:28:43 -0800 (PST) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EFBA43F3F for ; Tue, 25 Mar 2003 19:28:42 -0800 (PST) (envelope-from barner@in.tum.de) Received: from mailrelay1.informatik.tu-muenchen.de (mailrelay1.informatik.tu-muenchen.de [131.159.254.5]) by mailout.informatik.tu-muenchen.de (Postfix) with ESMTP id 80678620E; Wed, 26 Mar 2003 04:28:41 +0100 (MET) Received: from mail.informatik.tu-muenchen.de (mail.informatik.tu-muenchen.de [131.159.0.26]) by mailrelay1.informatik.tu-muenchen.de (Postfix) with ESMTP id 6E2E87946; Wed, 26 Mar 2003 04:28:41 +0100 (MET) Received: from zi025.glhnet.mhn.de (unknown [129.187.19.157]) by mail.informatik.tu-muenchen.de (Postfix) with ESMTP id 49A406CC24; Wed, 26 Mar 2003 04:28:41 +0100 (MET) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 00DF336D16; Wed, 26 Mar 2003 04:28:39 +0100 (CET) Date: Wed, 26 Mar 2003 04:28:39 +0100 From: Simon Barner To: Giorgos Keramidas Message-ID: <20030326032839.GB657@zi025.glhnet.mhn.de> References: <20030325204410.D17599@dhcp-17-14.kico2.on.cogeco.ca> <20030326030420.GA16019@gothmog.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bCsyhTFzCvuiizWE" Content-Disposition: inline In-Reply-To: <20030326030420.GA16019@gothmog.gr> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-31.1 required=5.0 tests=AWL,HTML_10_20,HTML_MESSAGE,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: questions@freebsd.org Subject: Re: port to convert comma delimited file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD user questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 03:28:46 -0000 X-List-Received-Date: Wed, 26 Mar 2003 03:28:46 -0000 --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 "\n"; > while (defined($line =3D )) { > chomp $line; > print "\n"; > } > print "
" . join("", split(/;/, $line)) . > "
\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--