A have two different text lists. Different means size and almost different content.
Every list contains words sorted alphabetically-one word per line.
The length of the first list is about 2000 words (lines) and the second about 30 000.
So the first looks like shown below:
AA
BB
CC
DD
EE
FF
and the second one
AAA
AAAA
AAAAA
BB
CCCCC
All I'm just trying to do is finding which words are in both lists and export result to the third new list.
When I try to compare above examples, everything works as expected and shows as a results one line (BB) but with my real text files it doesn't show the same lines although there are at least few the same words.
I am a bit confused where is my mistake
Thanx for reading
Every list contains words sorted alphabetically-one word per line.
The length of the first list is about 2000 words (lines) and the second about 30 000.
So the first looks like shown below:
AA
BB
CC
DD
EE
FF
and the second one
AAA
AAAA
AAAAA
BB
CCCCC
All I'm just trying to do is finding which words are in both lists and export result to the third new list.
When I try to compare above examples, everything works as expected and shows as a results one line (BB) but with my real text files it doesn't show the same lines although there are at least few the same words.
I am a bit confused where is my mistake

Thanx for reading
Comment