From owner-freebsd-questions Thu Jul 11 8:45:19 2002 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 1A27737B407 for ; Thu, 11 Jul 2002 08:45:16 -0700 (PDT) Received: from aberlour1.sirsi.com (aberlour.sirsi.com [150.147.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D44243E31 for ; Thu, 11 Jul 2002 08:45:15 -0700 (PDT) (envelope-from erics@sirsi.com) Received: from stlmail.dra.com (stlmail.dra.com [192.65.218.119]) by aberlour1.sirsi.com (8.12.1/8.12.1) with ESMTP id g6BEQto1003059 for ; Thu, 11 Jul 2002 09:26:55 -0500 (CDT) Received: by stlmail.dra.com with Internet Mail Service (5.5.2653.19) id <3F511R35>; Thu, 11 Jul 2002 09:36:34 -0500 Message-ID: From: Eric Six To: "FreeBSD (E-mail)" Subject: Shell Script Question.. (perl maybe be better?) Date: Thu, 11 Jul 2002 09:36:33 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG All, I have a perl script I am running to collect statisics from a few different routers.. I want a report on a specific column in the report however.. the text files look like this Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9 Col10 Col11 n/n/n n n n text text text n n n text I am currently pulling all information off of the routers. I want to pull the information from Col11. I can use cut and tell it use tab as the delimter, but there isn't always data in the other columns and that returns the wrong information. I know there are some other ways to do this, any recommendations? TIA Eric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message