From owner-freebsd-questions@FreeBSD.ORG Thu Jul 26 21:51:49 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC94D16A41A for ; Thu, 26 Jul 2007 21:51:49 +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 6B33313C467 for ; Thu, 26 Jul 2007 21:51:49 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.13.8/8.13.8) with ESMTP id l6QLpm9f068503 for ; Thu, 26 Jul 2007 16:51:48 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200707262151.l6QLpm9f068503@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <68501.1185486708.1@dc.cis.okstate.edu> Date: Thu, 26 Jul 2007 16:51:48 -0500 From: Martin McCormick Subject: Re: awk question 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: Thu, 26 Jul 2007 21:51:49 -0000 Don Hinton writes: > On Thursday 26 July 2007 15:26:02 Peter Boosten wrote: > > P.U.Kruppa wrote: > > > > awk '{print $(NF-1)}' user.csv Yup, those blank lines will kill it for sure. A sed filter to remove blank lines ahead of the awk statement should allow it to work properly. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Network Operations Group