I have 2 files.
File1 has 400k numerical records. e.g:
1
2
3
4
5
6
.. and so on
File 2 also has 420k numerical records. e.g:
1
2
3
4
6
.. and so on
Both these file are in unsorted manner. I want to match the 2 file's and print the difference.
When I try using diff, comm, or grep it take a long time (more than an hour). This is not feasible for me.
How can I do this faster (matching and printing the difference).
I use HP -UX.