Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2002 15:55:51 +0100
From:      "Barry Byrne" <barry.byrne@wbtsystems.com>
To:        <mbettinger@championelevators.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: OT sed help
Message-ID:  <NCBBIAMNAKDKFJIIGNPKIEMDJJAA.barry.byrne@wbtsystems.com>
In-Reply-To: <200209190938.35632.matt@championelevators.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBIAMNAKDKFJIIGNPKIEMDJJAA.barry.byrne>