2 ms·
It can actually be even simpler: sort -u file1.txt file2.txt | tr A-Z a-z > whitelist.txt
by mattikus 12y ago
It can actually be even simpler:
sort -u file1.txt file2.txt | tr A-Z a-z > whitelist.txt
- eridius 12y agoYou 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.