[KLUG Members] Parsing a large file
Andrew Eidson
members@kalamazoolinux.org
Fri, 6 Feb 2004 16:25:38 -0500
I spoke to soon.. after looking at the help you need cut -f not cut -c..
but it does what I need it to do.. thanks
-----Original Message-----
From: members-admin@kalamazoolinux.org
[mailto:members-admin@kalamazoolinux.org]On Behalf Of Andrew Eidson
Sent: Friday, February 06, 2004 3:56 PM
To: members@kalamazoolinux.org
Subject: RE: [KLUG Members] Parsing a large file
Thanks Bruce.. that worked great..
-----Original Message-----
From: members-admin@kalamazoolinux.org
[mailto:members-admin@kalamazoolinux.org]On Behalf Of Bruce Smith
Sent: Friday, February 06, 2004 3:33 PM
To: KLUG
Subject: RE: [KLUG Members] Parsing a large file
It sounds like everyone is trying to over-complicate it with
perl/awk/python when a simple "cut" command will do the job.
> Well.. to lessen the burden it is a simple parse Column1, 2, 3 to file X
cut -c1-3 infile > file-x
> then parse column1, 20,30 to file Y..
cut -c1,20,30 infile > file-y
> the program I am going to import these
> files into will not handle the file as a whole..
- BS
_______________________________________________
Members mailing list
Members@kalamazoolinux.org
_______________________________________________
Members mailing list
Members@kalamazoolinux.org