Thread
-
Re: A very novice question about ascii files
Leslie Johnson - Contractor <ljohnson@arl.army.mil> — 2000-09-08T20:29:51Z
I guess you've looked a little at these files. Do they look like fixed format or delimited files? I.e., is the first field always columns 1-N, the second, N+1 to M, ... Actually, I'm not sure because I'm having to download them right now and look at them in notepad and I'm sure that's messing it up (for some reason VI doesn't seem to be working). They're in columns with column headings...granted they're wrapped around a little strangely. Maybe somebody out there knows how to change it either way? Thanks again, Leslie
-
Re: A very novice question about ascii files
ghaverla@freenet.edmonton.ab.ca — 2000-09-08T20:36:18Z
On Fri, 8 Sep 2000, Leslie Johnson - Contractor wrote: > Actually, I'm not sure because I'm having to download them right now and > look at them in notepad and I'm sure that's messing it up (for some reason > VI doesn't seem to be working). If a line has more than 1024 columns, notepad may not display them properly either. (I'm guessing a limit like that might be happening here.) > They're in columns with column > headings...granted they're wrapped around a little strangely. Maybe > somebody out there knows how to change it either way? A local LUG member was having Progress problems, his files were non-trivially delimited. It sounds like yours are fixed. If you do something like head -1 | wc head -2 | tail -1 | wc head -3 | tail -1 | wc And the wc's all say that lines are a common length, that would be a real quick indicator of fixed format output. Hopefully this gets thigns going for you. I'm off for the weekend, so hopefully others can pick up if you need more help (as little as I've helped). Gord Matter Realisations http://www.materialisations.com/ Gordon Haverland, B.Sc. M.Eng. President 101 9504 182 St. NW Edmonton, AB, CA T5T 3A7 780/481-8019 ghaverla @ freenet.edmonton.ab.ca
-
Re: A very novice question about ascii files
Thomas Good <tomg@q8.nrnet.org> — 2000-09-08T20:42:22Z
On Fri, 8 Sep 2000, Leslie Johnson - Contractor wrote: > > I guess you've looked a little at these files. Do they > look like fixed format or delimited files? I.e., is the first > field always columns 1-N, the second, N+1 to M, ... > > Actually, I'm not sure because I'm having to download them right now and > look at them in notepad and I'm sure that's messing it up (for some reason > VI doesn't seem to be working). They're in columns with column > headings...granted they're wrapped around a little strangely. Maybe > somebody out there knows how to change it either way? vi usually has a file size limit...if you have mc (midnight commander) you can peek at them that way (F3)... -------------------------------------------------------------------- SVCMC - Center for Behavioral Health -------------------------------------------------------------------- Thomas Good tomg@ { admin | q8 } .nrnet.org IS Coordinator / DBA Phone: 718-354-5528 Fax: 718-354-5056 -------------------------------------------------------------------- Powered by: PostgreSQL s l a c k w a r e FreeBSD: RDBMS |---------- linux The Power To Serve --------------------------------------------------------------------