Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mattikus
· 12y ago · 0 comments
It can actually be even simpler:
sort -u file1.txt file2.txt | tr A-Z a-z > whitelist.txt
Comments
[–]
eridius
12y ago
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.