I have been using comm to compare two simple column lists, and suppress items that were contained in the second list (suppression list). This was extremely simple and basic, however now list1 has two columns, and I must compare the second column in list1 with my suppression list.
Previously my user list and suppression list looked like:
user list:
user1@domain.com
user2@domain.com
suppression list:
user2@domain.com
And the command I used in my bash script:
Code:
comm -3 user_list suppression_list
Now my user list looks like:
user1@domain.com 3bc81bc52e7f209c3455af320abeee00
user2@domain.com ed076488b22b5359d7ffb16b8e30caed
and my suppression list looks like:
ed076488b22b5359d7ffb16b8e30caed
Basically I need to compare my user list and suppression list to suppress any users that exist in the suppression list, then remove the second column (md5).
I wasn't sure the fastest way to make comparisons if there was a similar command like comm, or if I needed to create an array of users and see if any of them matched the suppression list one by one. This seemed like it would be pretty process intensive. Anyone have any less cumbersome ideas?
Thanks guys, you are always a great resource.