To filter a list:
test@gmail.com whateverwsersdfsdfsd test2@gmail.com asdfasdlkfjsd
with a blacklist as such:
test@gmail.com
and retain the second part of the original list:
ruby -e 'h = Hash[*File.read("whatever").split(/[, \n]+/)].reject { |k| File.foreach("blacklist").grep(/#{k}/).any? }; puts h'