I want to do a line-by-line comparison of values in, say, column 6 of two files, and then echo the lines and their full contents, piping them into a combined file, say the line from one file and then the line from the next file immediately under it, all separated by a spacer line , when the absolute value of the difference in the values in column 6 from the two files is less than some small maximum value, such as < 0.001. I would not echo or print out all the other lines where the absolute value of the difference in the column 6 values is greater than 0.001, for example, but instead, only the cases where it is < 0.001. How would I do that?
how to compare values in two columns in two different files, echoing full lines where absolute value of difference is < a small maximum value?
awk