I think that this may be the limitation of shell script. But I believe in unix and shell script so taking to a next level - meaning asking on this forum.
Task is to look at file1 (attached here) and compare with file2(attached) , interested_nos should be that file whose nos are in file1 and not in file2 after comaprison.
This task is accomplised in MS Excel in fraction of a seconds then why 2.5 hrs for shell script, moreover it doesn't do as it is expected to do so.
Please do note that to meet requirements of attachements (no more than 256KB) I have truuncated approx 3K reocrds form file1.
I have also attached the shell script which does the job but it is futile as after 2.5 hrs it did not as it was expected to.
I am curious to know why is that the case
Your assistance would be highly appreciated.
P.S: I have attached file1 and file 2 after being sorted.