Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I have 2 files called "a.txt" and "b.txt" both have the list of words. Now I need to check which words are extra in "a.txt" and are not in the "b.txt".

I wanted an efficient algorithm as I wanted to compare 2 dictionaries.

1 Answer

0 votes
by (36.8k points)

If you have vim installed, try this:

vimdiff file1 file2

or

vim -d file1 file2

Want to be a Linux expert? Come and join this Linux course

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jan 24, 2021 in Linux by blackindya (18.4k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...