[102462] in RedHat Linux List
Re: parsing text files
daemon@ATHENA.MIT.EDU (Mike Hunziker)
Thu Dec 3 08:13:19 1998
Date: Thu, 03 Dec 1998 06:55:45 -0600
From: Mike Hunziker <MCHunziker@us.fortis.com>
To: redhat-digest@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
I would use a regex and perl. Mastering regex's are difficult but worth
the effort....I'm still working on it.
> You're right and you're wrong. It turns out that the column of
>information I was actually pulling information from only had one>
>word - so I lucked out *grin*. This wouldn't have worked in the
>example I gave though if I were trying to pull the person's last
>and first name because they are separate words and would have been
>parsed into separate variables. So out of curiosity, how would
>have you gone about separating the column if it had multiple
>words and the number of words varied?
****************************************************************
Please Note
The information in this E-mail message is legally privileged
and confidential information intended only for the use of the
individual(s) named above. If you, the reader of this message,
are not the intended recipient, you are hereby notified that
you should not further disseminate, distribute, or forward this
E-mail message. If you have received this E-mail in error,
please notify the sender. Thank you
*****************************************************************
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.