Posted by: Saajha August 19, 2009
--Comparing Text Strings--
Login in to Rate this Post:     0       ?        
Hmm, so - I said:
"...the goal is to have every single occurrence of abc in list A if it's not present in list B"

Doesn't that leave each list's strings/elements unique to those of the other list (and hence "...unique strings in each file")?

When we compare two files and speak about 'uniqueness', I'd think the reference would be toward uniqueness with respect to each other, and not within oneself.

Regardless, I'll buy the fact that 'unique strings in each file with respect to each other' or something similar would've made it little more descriptive. Sorry -- Thanks!

So, just for the heck of it - I tried comm without sorting and isolating the unique elements, works just as good as any other alternatives (except Excel) that I tried in the past. It does the comparison, but only gets rid of a single occurrence of the match.

~@~
Read Full Discussion Thread for this article