Skip to content

Instantly share code, notes, and snippets.

@dan
Created November 8, 2019 22:57
Show Gist options
  • Save dan/79c9aad7753f43abe71697e1c35eb43e to your computer and use it in GitHub Desktop.
Save dan/79c9aad7753f43abe71697e1c35eb43e to your computer and use it in GitHub Desktop.
#!/bin/sh
sed 's/\r//' $1 > old-emails.out
sed 's/\r//' $2 > new-emails.out
comm -13 old-emails.out new-emails.out > output.txt
rm -f old-emails.out new-emails.out
echo "Output results to output.txt."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment