Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2002 17:19:22 -0500
From:      Matthew Bettinger <matt@championelevators.com>
To:        freebsd-questions@FreeBSD.ORG, mbettinger@championelevators.com
Subject:   Re: OT sed help
Message-ID:  <200209191719.28643.matt@championelevators.com>
In-Reply-To: <200209191940.g8JJeUGu069968@lurza.secnetix.de>
References:  <200209191940.g8JJeUGu069968@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the solution.

Informix fun fun ...

Matt


On Thursday 19 September 2002 02:40 pm, Oliver Fromme wrote:
> Matthew Bettinger <matt@championelevators.com> wrote:
>  > 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 f=
irst
>  > field and if there are more than 8 print out a list?
>
> It's probably easiest to use awk for that job:
>
>    awk '(length($1) > 8)' flatfile.txt
>
> Regards
>    Oliver
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9ik1vXG7+MmNwciURAtgqAKCkcmKuBbKcVAy8T4kydXbQPuA7WQCcC27c
pCpQllkmCZp0aIIhiWqE7lo=3D
=3Dl7D5
-----END PGP SIGNATURE-----


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?200209191719.28643.matt>