Comparing two files in linux terminal

Ali Imran picture Ali Imran · Jan 24, 2013 · Viewed 298k times · Source

There are two files called "a.txt" and "b.txt" both have a list of words. Now I want to check which words are extra in "a.txt" and are not in "b.txt".

I need a efficient algorithm as I need to compare two dictionaries.

Answer

Fengya Li picture Fengya Li · Feb 13, 2014

if you have vim installed,try this:

vimdiff file1 file2

or

vim -d file1 file2

you will find it fantastic.enter image description here