[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Extracing data from a file



begin  Will Newton  quotation:

> On Tuesday 16 Apr 2002 6:15 pm, you wrote:
> 
> > Are the records seperated by a blank line, or anything similar?
> > What does the id_string look like? Letters, letters and numbers, a
> > particular combination?
> 
> I imagine he means a literal "id_string" and then 'i' is the id string.

    A record looks like this:
wheat22.poi
i
8
296 208
306 220
354 202
347 188

    The second line is just a constant, and can be forgotten. The
third line staes the number of data points that are given (two in each
line after line 3). The first line is the filename.

> So you do this in Python:

    I can't, it's not installed over here. It's gotta be either Perl
or tcsh+sed+awk+... :-(

> 
    I'll have a look at the perl options and try to understand them
(I am already shaking...) :-)

    Cheers,
    Jose
-- 
José L Gómez Dans			PhD student
Tel: +44 114 222 5582			Radar & Communications Group
FAX; +44 870 132 2990			Department of Electronic Engineering
					University of Sheffield UK
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.