Created
August 9, 2011 13:51
-
-
Save becsegal/1134095 to your computer and use it in GitHub Desktop.
Managing email lists to send only to new users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # do_not_send list: merge (if required), sort, downcase, and de-dupe | |
| cat exclude1 exclude2 | awk '{print tolower($0)}' | sort | uniq > do_not_send | |
| # large list: repeat process | |
| cat file1 | awk '{print tolower($0)}' | sort | uniq > big_list | |
| # get the entries that are unique to the big_list | |
| comm -13 do_not_send big_list > send |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment