Skip to content

Instantly share code, notes, and snippets.

@becsegal
Created August 9, 2011 13:51
Show Gist options
  • Select an option

  • Save becsegal/1134095 to your computer and use it in GitHub Desktop.

Select an option

Save becsegal/1134095 to your computer and use it in GitHub Desktop.
Managing email lists to send only to new users
# 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