Hmmm..... Were you already given a 'starting' point here?
vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
I don't quote follow the output - what's being repeated?
How do expect to 'relate' records/lines from both files?
What's the common key/fields relating lines/records from both files?
Can you give a very simple sample of both files (1 line each) AND a desired result based on the sample data...
Your output does not jive exactly with your sample input file and your 'testing' formula.
Re-validate your either your 'formula' or your desired output.
I've implemented your formula as is:
nawk -f demis.awk data1 data2
FNR==NR {
f1[$2,$3]=$1
next
}
{
for (f1iter in f1) {...
without seeing what you've tried so far. it's hard to say.....
vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
...provide the definition of your 'merge' - what the final result/file should look like. This leaves a lot to the interpretation.
Despite your I*net scavenging hunt, I'll provide one interpretation of the task and let you work with it.
nawk -f toni.awk file1 file2
toni.awk:
BEGIN {...
tonivm,
it seems that you have a propensity of not giving direct answers when asked about your own implementation effort. At least in this forum.
Pls try your do your own investigation and try your own 'hand' first. It looks like you've been given quite a number of solutions recently and should...
Hmmm..... This reminds me of a solution at the other forum.
vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.