Getting the value of a line, that changes place

Hi

I am trying to get the value of several results in a file called seq032.diag.

The values I am looking for is down under Smooth Tracking nodes and is for g01r01 g02r01 s01t02 etc etc. The problem is that when I try to use look for text and tail etc, it works fine in one result file. In the next result file there might be more Tracking nodes in the file so they actually change place in the file.

Can anyone help me out here ?

I am attaching my script and two diag files:eek:

Much obliged

Johnny

While I took a quick look at the code and sample files, and read your comments about organization of lines... could you:

(a) 'grep' the lines that meet the general criteria to a temp file
(b) 'sort' the lines in that new smaller file into a consistent order

then, you might have more control over the format, layout and order of the data?