-----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 <[EMAIL PROTECTED]> 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 first > > 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= =l7D5 -----END PGP SIGNATURE----- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message