I have two files. If Column1 of File1 doesnot march Column1 of File2 then print the whole line of File1 in the output file. If Column1 of both Files Matches, and if the value of Column2 of File1 say "N" is greater than "N+10" or lesser than "N-10" than the value of Column2 of File2, only then print the whole line of File1.
File1:
C1 23
C1 24
C2 66
C3 88
C6 100
C7 79
C20 200
File2:
C1 44
C1 35
C2 70
C4 88
C6 92
C7 90
C9 80
Expected Output:
C1 23
C1 24
C3 88
C7 79
C20 200
I would appreciate your help in solving this. Thank you.