Urgent: How can i get the missing records from one file out of two

Hi,

I have two files say A and B, Both files have some common records few records which are unique to file A and unique to file B.

Can anyone please help me out to find the records which are present in only B

Please consider the files are of too large size.
Thanks:confused:

I know there are other solutions but this one will work..

while read line
do
if [ `grep -c $line file1` = 0 ]
then
echo $line
fi
done < file2

cheers,
Devaraj Takhellambam