Hi all. Not sure if this is the right place to ask this, but here goes. Is there a way, preferably using terminal commands, I can compare adjacent lines of a text file to see if they contain any of the same words? So for a file like this Code: one two three three four five six seven eight the first and second lines get returned (since 'three' is repeated) but not the second and third lines since they don't contain any of the same words. Thanks.