From owner-freebsd-questions Thu Sep 19 7:56: 2 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 97A7737B401 for ; Thu, 19 Sep 2002 07:56:00 -0700 (PDT) Received: from slate.dublin.wbtsystems.com (slate.dublin.wbtsystems.com [193.120.231.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A91B43E3B for ; Thu, 19 Sep 2002 07:55:59 -0700 (PDT) (envelope-from barry.byrne@wbtsystems.com) Received: from spiral (spiral.dublin.wbtsystems.com [193.120.231.190]) (authenticated bits=0) by slate.dublin.wbtsystems.com (8.12.6/8.12.6) with ESMTP id g8JEtqlQ013427; Thu, 19 Sep 2002 15:55:52 +0100 (IST) From: "Barry Byrne" To: , Subject: RE: OT sed help Date: Thu, 19 Sep 2002 15:55:51 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: <200209190938.35632.matt@championelevators.com> X-WBT-Authenticated-User: bb X-Scanned-By: slate/MIMEDefang 2.21 (www . roaringpenguin . com / mimedefang) 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 Matt: How about: grep -E "^\w{9,}," flatfile.txt > morethaneight.txt - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland Phone: +353 1 417 0150 Fax: +353 1 478 5544 Email: barry.byrne@wbtsystems.com Web: www.wbtsystems.com > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Matthew > Bettinger > Sent: 19 September 2002 15:39 > To: freebsd-questions@FreeBSD.ORG > Subject: OT sed help > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I know this is off topic however I hope someone can help. > > I have a flat file that I need to import into a database. The > first field of > the file is a part number which cannot exceed more than 8 characters. > > Does anyone know how I can use sed to count the characters in > the first field > and if there are more than 8 print out a list? > > Thank you. > > Matt > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (FreeBSD) > > iD8DBQE9ieFpXG7+MmNwciURAqRxAJsES932AbaFG0w4+1oGU+K6reogEwCgoEdx > ZEf/Vi3j8vq8HbO4t7gSAqY= > =taxV > -----END PGP SIGNATURE----- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message