|We don't bite newbies here... much|
Re: Removing users from a listby Kenosis (Priest)
|on Sep 09, 2012 at 05:18 UTC||Need Help??|
If I'm understanding your issue, you have two data sets. One contained in removelist.txt:
The other in masterlist.txt:
You want items from the first set to be removed from the second. Excellent suggestions have been offered, and this is a "classic issue."
See if the following will work for your situation:
With the above two data sets, here is the output to finallist.txt:
The script only does what you mentioned, viz., joins the removelist.txt items with the pipe character (alternation operator) for a !"or" regex of email addresses used by grep on the masterlist.txt lines.
Hope this helps!