From owner-freebsd-questions@FreeBSD.ORG Fri Oct 6 19:12:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0623016A4C9 for ; Fri, 6 Oct 2006 19:12:24 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.100.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0B5043D5A for ; Fri, 6 Oct 2006 19:12:23 +0000 (GMT) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (localhost.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.13.3/8.13.3) with ESMTP id k96JCMhW005306 for ; Fri, 6 Oct 2006 14:12:22 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200610061912.k96JCMhW005306@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5301.1160161942.1@dc.cis.okstate.edu> Date: Fri, 06 Oct 2006 14:12:22 -0500 From: Martin McCormick Subject: Re: A Question of How to Handle Numerical Notation Solved X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2006 19:12:24 -0000 Those of you who recognised the example string I sent as a UUID really helped solve this problem. What happened was that the algorithm I wrote to parse the CSV values in each record is broken when it encounters a blank field as in ,, so it fails to increase the index counter and place a null string at that point. This meant that what I was reading as field W was actually more like field Z. I was actually looking at a field labeled "pkid" or Packet ID which is the UUID you saw. The algorithm I wrote to parse worked perfectly on the first line of the file because every field was populated but it silently failed on lines of real data because of blank fields. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Network Operations Group