Is there a way in Unix, to evaluate how similar or dissimilar, two text files are?
I know about diff
, but it just gives me the differences itself. What I am after is to just receive as an answer, some kind of evaluation of how much alike those two texts are. Do they contain much the same words, are the texts often quite similar etc. It is actually quite complicated to evaluate this in a high quality manner so I'm wondering if somebody has already done this.
Would be good to just receive a number, could then be that 0 means they are identical, and a high number means they are nothing alike.