I want to compare two files and print only the first word of the lines that match and that don't match along with a string.
file1.txt
=========
abc 123
bcd 234
cde 345
file2.txt
=========
abc 123
bcd 223
cde 234
above abc is matching in both file1.txt and file2.txt. So I need to print as below:
abc is matching. it is ok.
above bcd and cde in file1.txt and file2.txt are not different. So I need to print as below:
bcd is not matching. please check.
cde is not matching. please check.