1.- Lines that exists only in one of the two files.
2.- Lines whose first three columns are the same but the difference between the number of the fourth is different from 0.1 or -0.1. In that case, the line of what file is what you have to write to output?
Seven posts to try to make clear what you are trying to get, and still confused. I think we are not understanding each other, and may be my problem. I will quote:
You said:
To question of spynappels:
your answer is:
The program compares the first three fields of each line in both files. Only if they are the same compares the fourth column. In your last example the second field is different (9000 < 12000). For the program those lines are different so there is nothing to compare and nothing to send to output.
You post different input with each message. Please, try to help me a little and tell what 'same line in both files' means to you. Say what to do when field1, or field2, or field3 is different in both files. Say what to do if there is a line in one file that doesn't exists in the other one (all fields different) and post an example of input file with all cases and exactly the expected output.
You can safely indicate if the program doesn't work well, but understand that sometimes it is inconvenient to change the code because requirements are not clear from the beginning.