[GRASSLIST:472] Re: awk?
Moritz Lennert
mlennert at club.worldonline.be
Mon Jun 23 11:28:20 EDT 2003
Sjors said:
> Hi,
>
> I want to add new values to a site file form another sitefile. How to do
> this with awk?
> I'm thinking it's got to be somethhing like:
>
> awk F=|, /*? {$3} file1 | cat file2
>
>
> Somebody got an idea? It's not completely right, but how to specify the
> columns in the second file, actualy create column in second file?
>
I'm not sure I understand completely what you want to do:
file 1
0.000|0.000|#1 %5
file 2
12.3
result
0.000|0.000|#1 %5 %12.3
OR
file 1
0.000|0.000|#1 %5
file 2
1.000|1.000|#2 %12.3
result
0.000|0.000|#1 %5
1.000|1.000|#2 %12.3
If the first, try paste, if the second try cat>>
Moritz
More information about the grass-user
mailing list