need shell script for this challenge problem

two tabulate files (A, B), each contents thousands and thousands lines with ids.

first find out contents with common ids in both A, B and print out into a file;
second find out contents with ids which only exist in file A and print out into a file.

School work is not allowed to be posted.

this isn't a school work. I just want to see if scripting language can do something when a database is not available.

Hi,

Please do not double post your queries..
also please read forum rules..

Thanks
SHa

I wasn't realize that there will be delay between posted and then actually seen.