I wrote a script to compare words from two files, counting the number of matches.
The script worked in Windows, but when I moved the script to a Linux computer, it's no longer counting the words.
It runs and produces the preliminary output (headers, etc.), but it has 0 counts for the matches. I used eq to compare strings, and then to double-check, I used regular expressions.
Please let me know if you have any suggestions,