Search Results

Search: Posts Made By: ian_gooch
1,758
Posted By ian_gooch
Yeah, END { printLine() } Is in...
Yeah,


END { printLine() }


Is in there, but still producers the same error :-(

I am trying this from a slightly different approach


awk 'BEGIN {RS=" "} { for (i-1;i<NF;i++) printf...
1,758
Posted By ian_gooch
Hi Jean-Pierre, I don't have nawk installed...
Hi Jean-Pierre,

I don't have nawk installed but I do have gawk. However it came up with the same error as awk


END printLine() }
^ syntax error


thanks
Ian
1,758
Posted By ian_gooch
Hi Guys, Thanks for replying. First it's...
Hi Guys,
Thanks for replying.

First it's not a regular patten, as some of the lines go like this

1 03005 41460 73215 10018 20000 39990 40092 51035 78782 879// 90850
2
3 333 41998 55300 20000...
1,758
Posted By ian_gooch
Help with AWK SED
Hi guys,

I have a question regarding AWK or SED.

I have a data file which reads like this;

1,03005 41460 73215 10018 20000 39990 40092 51035 78782 879// 90850
2,
3,333 41998 55300 20000...
2,424
Posted By ian_gooch
Hi Summer, thanks for the script. I have not...
Hi Summer,

thanks for the script. I have not really tried perl, only bits and bobs, nothing major. I will have a go at it though, if you don't mind coaching me along every now and again. :-)
2,424
Posted By ian_gooch
Hi Jim, Perhaps nearest should be the key....
Hi Jim,

Perhaps nearest should be the key. How I'm thinking is that as the files are looping the nearest match can be found and that is the one to use.

So $2 on file one has a number of...
2,424
Posted By ian_gooch
Matching Numbers in Bash/AWK
Hi,

I need to match up some numbers in one file to the closest numbers in other file and produce an output file.

File one (f1.txt) is laid out like this

PCode Lon ...
5,136
Posted By ian_gooch
The output would be to match the closet lat and...
The output would be to match the closet lat and lon numbers from from lat_lon.txt to the node.txt lat and lon numbers and return the node number.

Cheers,

---------- Post updated at 05:17 AM...
5,136
Posted By ian_gooch
OK thanks, I have attached sample files of...
OK thanks,

I have attached sample files of the node.txt and the lat_lon.txt

I need to match the lat and lon from lat_lon.txt to the lat lon from node.txt and print the node number in a new text...
5,136
Posted By ian_gooch
Thanks aster007, I will put it to the test...
Thanks aster007,

I will put it to the test tomorrow, and will let you know how I got on.

Many thanks again :-)

Cheers,
Ian

---------- Post updated 04-13-11 at 03:33 AM ----------...
5,136
Posted By ian_gooch
AWK Match to nearest number
Hello Guys,

I'm very new on here and require some help matching up and printing some columns using awk.

I have two text files. The first file has Longitude data in column 1 (lon.txt) and the...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 10:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy