[102358] in RedHat Linux List
Re: parsing text files
daemon@ATHENA.MIT.EDU (Rick Forrester)
Wed Dec 2 16:02:17 1998
To: redhat-list@redhat.com
cc: rickf@glacier.jpl.nasa.gov
In-reply-to: Your message of "Wed, 02 Dec 1998 14:51:46 CST."
<199812022051.OAA27840@ftms.ftms.com>
Date: Wed, 02 Dec 1998 12:58:38 -0800
From: Rick Forrester <rickf@glacier.jpl.nasa.gov>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
brown@ftms.COM said:
>>Is there a unix command that I can use to parse a column of text
>>from a >file? For example, a command that would allow me to parse
>>the column titled address from a file with the following
>>information and output it to another file?
>
>Name Address Town
>bob 123 A st. Somewhere
>steve 123 B st. Somewhere
>joe 123 C st. Somewhere
>gloria 123 D st. Somewhere
> I'm not sure what a list of street names would do for you without the
> city the street is in, but, no, there isn't a simple program with a
> simple set of options that will extract that info. At least, not
> that I know of.
Try "man cut". I think it will do what is desired here.
Best
rickf
--
Rick Forrister <Richard.Forrister@jpl.nasa.gov>
You'll wonder why your data's lost
When you load your system with MicroSoft...
--
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.