[NTLUG:Discuss] Filtering a list with a list
Robert Citek
robert.citek at gmail.com
Sat Mar 7 10:05:19 CST 2009
fgrep -v will work for small lists:
$ fgrep -v -f exclude.list source.list
user1 at domain.com
user2 at domain.com
user3 at domain.com
user4 at domain.com
For larger lists, you'll probably want to use join:
$ join -v 1 <(sort source.list ) <(sort exclude.list )
user1 at domain.com
user2 at domain.com
user3 at domain.com
user4 at domain.com
Regards,
- Robert
On Fri, Mar 6, 2009 at 7:36 PM, Daniel Hauck <daniel at yacg.com> wrote:
> I have a process that generates a list of valid email addresses for a
> system. I would like to be able to filter that list by removing all
> entries that appear in an exclusion list.
More information about the Discuss
mailing list