in reply to Remove lines from a file based on a second file
Could you adapt the advice given in this node?