Hacker News new | ask | show | jobs
by mattikus 4355 days ago
It can actually be even simpler:

  sort -u file1.txt file2.txt | tr A-Z a-z > whitelist.txt
1 comments

You need the -f flag to sort as well to ignore case during the sorting. I don't know how portable the flags to sort are though which is why I didn't bother using them.