From owner-freebsd-questions Thu Sep 19 7:39:37 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 DFCC937B401 for ; Thu, 19 Sep 2002 07:39:35 -0700 (PDT) Received: from smtp.accelernet.net (smtp.accelernet.net [208.159.164.209]) by mx1.FreeBSD.org (Postfix) with SMTP id 55B5343E6E for ; Thu, 19 Sep 2002 07:39:35 -0700 (PDT) (envelope-from matt@championelevators.com) Received: (qmail 12051 invoked from network); 19 Sep 2002 14:39:34 -0000 Received: from 208-169-162-132.hou.accelernet.net (HELO daemon.championelevators.com) (208.169.162.132) by smtp.accelernet.net with SMTP; 19 Sep 2002 14:39:34 -0000 Content-Type: text/plain; charset="us-ascii" From: Matthew Bettinger Reply-To: mbettinger@championelevators.com Organization: Champion Elevators, inc. To: freebsd-questions@FreeBSD.ORG Subject: OT sed help Date: Thu, 19 Sep 2002 09:38:33 -0500 User-Agent: KMail/1.4.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209190938.35632.matt@championelevators.com> 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 -----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 fiel= d of=20 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=20 and if there are more than 8 print out a list? Thank you. Matt=20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9ieFpXG7+MmNwciURAqRxAJsES932AbaFG0w4+1oGU+K6reogEwCgoEdx ZEf/Vi3j8vq8HbO4t7gSAqY=3D =3DtaxV -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message