I have 2 file
File1
1. amayaM
2. vismayaM
3. vismayaN
File2
1. amayamAn
2. vismayamAn
3. vismayamer
I need to check each character by character between 2 files and if the nonmatching character in first file is M then print the word in first file else no output.
output
1. amayaM
2. vismayaM