Could you adapt the advice given in this node?
In reply to Re: Remove lines from a file based on a second file by AR in thread Remove lines from a file based on a second file by Anonymous Monk