Help comparing files

Hi Everybody,
I have an requirement in my project like I need to compare first 2 columns of two files and create a 3rd file in the format col1 col2 Y/N(Indicating matched or not)

Ex:
File 1:
Col1 Col2
Col3 col 4
File 2:
col1 col2
col5 col6
File 3:
col1 col2 Y
col3 col4 N
col5 col6 N

Thanks in advance

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

******************************************************

This is asked and solved frequently - please use the search function, ty.